struct ErrorSinkRaw {
scopes: HashMap<ThreadId, Vec<ErrorScope>>,
uncaptured_handler: Option<Arc<dyn UncapturedErrorHandler>>,
}Available on
wgpu_core only.Fields§
§scopes: HashMap<ThreadId, Vec<ErrorScope>>§uncaptured_handler: Option<Arc<dyn UncapturedErrorHandler>>Implementations§
Source§impl ErrorSinkRaw
impl ErrorSinkRaw
fn new() -> ErrorSinkRaw
Sourcefn handle_error_or_return_handler(
&mut self,
err: Error,
) -> Option<impl FnOnce()>
fn handle_error_or_return_handler( &mut self, err: Error, ) -> Option<impl FnOnce()>
Deliver the error to
- the innermost error scope, if any, or
- the uncaptured error handler, if there is one, or
default_error_handler().
If a closure is returned, the caller should call it immediately after dropping the
ErrorSink mutex guard. This makes sure that the user callback is not called with
a wgpu mutex held.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorSinkRaw
impl !RefUnwindSafe for ErrorSinkRaw
impl Send for ErrorSinkRaw
impl Sync for ErrorSinkRaw
impl Unpin for ErrorSinkRaw
impl !UnwindSafe for ErrorSinkRaw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more