Struct lease::Lease [−][src]
#[must_use]pub struct Lease<T> { /* fields omitted */ }
Expand description
Represents a lease from a Pool
When the lease is dropped it is returned to the pool for re-use
This struct implements core::ops::Deref
and core::ops::DerefMut
so those traits can be used
to get access to the underlying data.
It also implements core::convert::AsRef
and core::convert::AsMut
for all types that the underlying type
does so those can also be used to get access to the underlying data.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Lease<T>
impl<T> !UnwindSafe for Lease<T>