pub struct Local(/* private fields */);Expand description
Marker type for closures that do not require Send or Sync.
An InlineFn, InlineFnMut, or InlineFnOnce parameterized with Local is !Send and
!Sync, allowing it to capture thread-local state, raw pointers, or lock guards.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Local
impl !Sync for Local
impl Freeze for Local
impl RefUnwindSafe for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more