pub struct MethodBuilder<'a, C, F> { /* private fields */ }
Expand description

Builder type used to register a method on a NativeClass.

Implementations§

Set a RPC mode for this method.

Register the method.

Register the method as a stateless method. Stateless methods do not have data pointers and destructors and are thus slightly lighter. This is intended for ZSTs, but can be used with any Method type with Copy + Default.

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.

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.