Struct deno_core::AsyncRefCell[][src]

pub struct AsyncRefCell<T> { /* fields omitted */ }

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

Performs the conversion.

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.

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.