Skip to main content

RequestDecoderArc

Type Alias RequestDecoderArc 

Source
pub type RequestDecoderArc<A> = Arc<dyn ErasedDecoder<<A as Application>::Event>>;
Expand description

Decoder type alias: the application’s request decoder, bound to its Event type, with its role type erased (see ErasedDecoder). Mirrors crate::response::ResponseEncoderArc; hides the dyn ErasedDecoder<…> spelling at call sites that thread the decoder through several functions.

Aliased Type§

pub struct RequestDecoderArc<A> { /* private fields */ }