pub struct DefaultMediatorBuilder { /* private fields */ }
Expand description

A builder for the DefaultMediator.

Implementations

Constructs a new DefaultMediatorBuilder.

Registers a request handler.

Registers a request handler from a function.

Register a request handler using a copy of the mediator.

Registers a request handler from a function using a copy of the mediator.

Registers an event handler.

Registers an event handler from a function.

Registers an event handler using a copy of the mediator.

Registers an event handler from a function using a copy of the mediator.

Builds a DefaultMediator.

Trait Implementations

Returns the “default value” for a type. 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.