struct InternalErrorSink {
scopes: HashMap<ThreadId, Vec<ErrorScope>>,
uncaptured_handler: Option<Arc<dyn UncapturedErrorHandler>>,
}Fields§
§scopes: HashMap<ThreadId, Vec<ErrorScope>>§uncaptured_handler: Option<Arc<dyn UncapturedErrorHandler>>Implementations§
Source§impl InternalErrorSink
impl InternalErrorSink
fn new() -> InternalErrorSink
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 InternalErrorSink
impl !RefUnwindSafe for InternalErrorSink
impl Send for InternalErrorSink
impl Sync for InternalErrorSink
impl Unpin for InternalErrorSink
impl !UnwindSafe for InternalErrorSink
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