Struct ic_kit::Method [−][src]
pub struct Method { /* fields omitted */ }Expand description
A method that is constructed using nested calls.
Implementations
Put a name for the method. Setting a name on the method makes the CallHandler for this method skip this method if it’s trying to make a call to a method with a different name.
Panics
If the method already has a name.
Make the method consume all of the cycles provided to it.
Make the method consume at most the given amount of cycles.
Make the method refund the given amount of cycles.
Make the method expect the given value as the argument, this method makes the method panic if it’s called with an argument other than what is provided.
Panics
If called more than once.
Create a method that expects this amount of cycles to be sent to it.
Panics
If called more than once on a method.
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