Struct lifelink::Deathtouch
source · pub struct Deathtouch<'a, C: Ctor> { /* private fields */ }
Expand description
A guard value that preserves compile-time lifetime information from the value passed
to Lifelink::new
.
This will block the calling thread when unwrapped or dropped, until all Guard
s
currently alive go out of the scope. The value can then no longer be accessed from the
corresponding Lifelink
.
Note that Unlike cryo
, this does not attempt to wait until the Lifelink
handle
itself is dropped, only the Guard
values it produces. See the Caveats section of
README for more details.
Implementations§
Trait Implementations§
source§impl<'a, C: Ctor> Drop for Deathtouch<'a, C>
impl<'a, C: Ctor> Drop for Deathtouch<'a, C>
impl<'a, C: SendCtor> Send for Deathtouch<'a, C>
Auto Trait Implementations§
impl<'a, C> !RefUnwindSafe for Deathtouch<'a, C>
impl<'a, C> !Sync for Deathtouch<'a, C>
impl<'a, C> Unpin for Deathtouch<'a, C>
impl<'a, C> !UnwindSafe for Deathtouch<'a, C>
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