pub struct DisposableLock { /* private fields */ }Expand description
A lock whose holder gets a disposable that releases it.
The thread that holds the lock may take it again (the lock of the reference is a monitor); each disposable releases one entry, on the thread that took it.
Implementations§
Trait Implementations§
Source§impl Clone for DisposableLock
impl Clone for DisposableLock
Auto Trait Implementations§
impl Freeze for DisposableLock
impl RefUnwindSafe for DisposableLock
impl Send for DisposableLock
impl Sync for DisposableLock
impl Unpin for DisposableLock
impl UnsafeUnpin for DisposableLock
impl UnwindSafe for DisposableLock
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