pub struct RestoreContext { /* private fields */ }Expand description
Restores the previous current context; see
FerroSynchronizationContext::ensure.
The context is restored when the value is disposed or dropped, whichever comes first.
Trait Implementations§
Source§impl Default for RestoreContext
impl Default for RestoreContext
Source§impl Drop for RestoreContext
impl Drop for RestoreContext
Source§impl IDisposable for RestoreContext
impl IDisposable for RestoreContext
Auto Trait Implementations§
impl !Freeze for RestoreContext
impl !RefUnwindSafe for RestoreContext
impl !Sync for RestoreContext
impl Send for RestoreContext
impl Unpin for RestoreContext
impl UnsafeUnpin for RestoreContext
impl UnwindSafe for RestoreContext
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more