Struct rustbus::connection::dispatch_conn::DispatchConn[][src]

pub struct DispatchConn<HandlerCtx, HandlerError: Debug> { /* fields omitted */ }

Implementations

Endless loop that takes messages and dispatches them to the setup handlers. If any errors occur they will be returned. Depending on the error you may choose to just call this function again. Note that you are expected to send a meaningful error message. The offending message will be returned alongside the error.

This also sends reponses back to the callers, returned by the handlers. If the handlers did return None, it sends a default response with no content.

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.

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.