pub struct Lease<T: 'static> { /* private fields */ }Expand description
A live claim on a Leased signal: the producer’s drain does not return
until every Lease has been dropped.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Lease<T>
impl<T> !UnwindSafe for Lease<T>
impl<T> Freeze for Lease<T>
impl<T> Send for Lease<T>
impl<T> Sync for Lease<T>
impl<T> Unpin for Lease<T>
impl<T> UnsafeUnpin for Lease<T>where
&'static Leased<T>: UnsafeUnpin,
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