pub struct Canister { /* private fields */ }
Expand description

A canister that is being executed.

Implementations

Create a new instance of this canister with the given id.

Return the canister ID.

Provide the canister with the definition of the given method.

Provide the canister with this stable storage backend.

Trait Implementations

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.

Should always be Self

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.