pub struct MainThreadScope(/* private fields */);
Expand description
A usage scope which unlocks all functions that are safe to execute from the main thread.
Trait Implementations§
Source§impl Debug for MainThreadScope
impl Debug for MainThreadScope
Source§impl Default for MainThreadScope
impl Default for MainThreadScope
Source§fn default() -> MainThreadScope
fn default() -> MainThreadScope
Returns the “default value” for a type. Read more
impl MainThreadOnly for MainThreadScope
Auto Trait Implementations§
impl Freeze for MainThreadScope
impl RefUnwindSafe for MainThreadScope
impl Send for MainThreadScope
impl Sync for MainThreadScope
impl Unpin for MainThreadScope
impl UnwindSafe for MainThreadScope
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