Struct ic_kit::Canister [−][src]
pub struct Canister { /* fields omitted */ }Expand description
Can be used to represent a canister and different method on the canister.
Implementations
Create a new canister with the given principal id, this handler rejects any call to a different canister id.
Return a reference to the context associated with this canister.
Update the balance of this canister.
Add the given method to the canister.
Panics
If a method with the same name is already defined on the canister.
Trait Implementations
Whatever the handler can handle the given call or not, if this method returns false, we skip this handler and try to find the next handler that can handle the call. Read more