pub struct ErrorSink(/* private fields */);Implementations§
Source§impl ErrorSink
impl ErrorSink
pub fn new() -> ErrorSink
pub fn handle_error( &self, source: impl WebGpuError + WasmNotSendSync + 'static, label: Option<&str>, fn_ident: &'static str, )
pub fn handle_error_nolabel( &self, source: impl WebGpuError + WasmNotSendSync + 'static, fn_ident: &'static str, )
Auto Trait Implementations§
impl !Freeze for ErrorSink
impl !RefUnwindSafe for ErrorSink
impl !UnwindSafe for ErrorSink
impl Forget for ErrorSink
impl Move for ErrorSink
impl Send for ErrorSink
impl Sync for ErrorSink
impl Unpin for ErrorSink
impl UnsafeUnpin for ErrorSinkwhere
Align1<u8>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(ThreadId, Vec<ErrorScope>)>: UnsafeUnpin,
*const ArcInner<dyn UncapturedErrorHandler<Output = ()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn UncapturedErrorHandler<Output = ()>>>: UnsafeUnpin,
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