pub struct TransferHandlerChain<H0, H1> { /* private fields */ }
Expand description

Combines two transfer handlers

Implementations

Creates a handler chain

Each incoming transfer will be passed to handler 0 first. If handler 0 does not handle the transfer, the transfer will be passed to handler 1.

Returns a reference to the first handler in this chain

Returns a mutable reference to the first handler in this chain

Returns a reference to the second handler in this chain

Returns a mutable reference to the second handler in this chain

Splits this chain into its inner handlers

Trait Implementations

Potentially handles an incoming message transfer Read more

Potentially handles an incoming service request Read more

Potentially handles an incoming service response Read more

Chains another handler after this handler and returns the combined handler Read more

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.