Struct webwire::server::session::DefaultSessionHandler[][src]

pub struct DefaultSessionHandler<S: Default + Send + Sync> { /* fields omitted */ }
Expand description

This implementation of a SessionHandler creates sessions using the Default trait of given session type.

Implementations

Create a new DefaultSessionHandler

Trait Implementations

Returns the “default value” for a type. Read more

Authorize the incoming request returning a session on success or an AuthError if the remote side could not be authenticated. Read more

Called when the remote side did actually connect. This is a separate function from auth as this handler is also used for stateless communications and it is possible that a stateful clients aborts right after authorization and never actually connects. Read more

Called when the remote side disconnected.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more