Struct worker_plus::durable::State

source ·
pub struct State { /* private fields */ }
Expand description

Passed from the runtime to provide access to the Durable Object’s storage as well as various metadata about the Object.

Implementations§

The ID of this Durable Object which can be converted into a hex string using its to_string() method.

Contains methods for accessing persistent storage via the transactional storage API. See Transactional Storage API for a detailed reference.

Trait Implementations§

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

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.