Expand description
Tokio-based server for WireframeApp instances.
WireframeServer spawns worker tasks to accept TCP connections and can
decode an optional preamble before handing the stream to the application.
Re-exports§
pub use error::ServerError;
Modules§
- binding
- Listener binding for
WireframeServer. - error
- Errors raised by
super::WireframeServeroperations. - preamble
- Preamble configuration for
WireframeServer.
Structs§
- Backoff
Config - Re-exported configuration types for server backoff behavior. Configuration for exponential back-off timing in the accept loop.
- Bound
- Marker indicating the server is bound to a TCP listener.
- Unbound
- Marker indicating the server has not yet bound a listener.
- Wireframe
Server - Tokio-based server for
WireframeAppinstances.
Traits§
- AppFactory
- Factory trait for building
WireframeAppinstances used by the server. - Factory
Result - Convert a factory output into a
Resultfor aWireframeApp. - Preamble
Success Handler - Handler invoked when a connection preamble decodes successfully.
- Server
State - Trait implemented by
UnboundandBoundto model binding typestate.
Type Aliases§
- Preamble
Failure - Handler invoked when decoding a connection preamble fails.
- Preamble
Handler PreambleSuccessHandlerwrapped inArc.