Struct deno_core::AsyncRefCell

source ·
pub struct AsyncRefCell<T> { /* private fields */ }

Implementations§

Borrow the cell’s contents synchronouslym without creating an intermediate future. If the cell has already been borrowed and either the existing or the requested borrow is exclusive, this function returns None.

Create a new AsyncRefCell that encapsulates the specified value. Note that in order to borrow the inner value, the AsyncRefCell needs to be wrapped in an Rc or an RcRef. These can be created either manually, or by using the convenience method AsyncRefCell::new_rc().

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.

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
Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.