pub enum ManagedCanisterEventKind<TCycles = u128> {
    CyclesSent {
        amount: TCycles,
        refund: TCycles,
    },
    Called {
        method_name: String,
        cycles: TCycles,
    },
    Created {
        cycles: TCycles,
    },
}
Expand description

The possible kinds of events that can be stored in a ManagedCanisterEvent.

Variants§

§

CyclesSent

Fields

§amount: TCycles

The number of cycles that were sent.

§refund: TCycles

The number of cycles that were refunded.

Cycles were sent to the canister.

§

Called

Fields

§method_name: String

The name of the function that was called.

§cycles: TCycles

The number of cycles that were provided along with the call.

A function call was forwarded to the canister.

§

Created

Fields

§cycles: TCycles

The number of cycles the canister was created with.

The canister was created.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. 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

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.