Struct ic_kit::Method[][src]

pub struct Method { /* fields omitted */ }
Expand description

A method that is constructed using nested calls.

Implementations

Create a new method.

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.

Make the method return the given constant value every time.

Panics

If called more than once.

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

Perform the call using this handler. Only called if accept() first returned true.

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

Performs the conversion.

Performs the conversion.

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.