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

Performs the conversion.

Performs the conversion.

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.