pub struct HandlerOptions<H, D, E> { /* private fields */ }Expand description
Options for a request handler.
Implementations§
Source§impl<H> HandlerOptions<H, (), ()>
impl<H> HandlerOptions<H, (), ()>
Source§impl<H, D, E> HandlerOptions<H, D, E>where
H: HandleRequest,
impl<H, D, E> HandlerOptions<H, D, E>where
H: HandleRequest,
Sourcepub fn decoder<F>(self, decoder_factory: F) -> HandlerOptions<H, F, E>
pub fn decoder<F>(self, decoder_factory: F) -> HandlerOptions<H, F, E>
Specifies the decoder factory that the handler will use.
Sourcepub fn default_decoder(self) -> HandlerOptions<H, DefaultFactory<H::Decoder>, E>
pub fn default_decoder(self) -> HandlerOptions<H, DefaultFactory<H::Decoder>, E>
Specifies that the handler will use the default decoder factory.
Sourcepub fn encoder<F>(self, encoder_factory: F) -> HandlerOptions<H, D, F>
pub fn encoder<F>(self, encoder_factory: F) -> HandlerOptions<H, D, F>
Specifies the encoder factory that the handler will use.
Sourcepub fn default_encoder(self) -> HandlerOptions<H, D, DefaultFactory<H::Encoder>>
pub fn default_encoder(self) -> HandlerOptions<H, D, DefaultFactory<H::Encoder>>
Specifies that the handler will use the default encoder factory.
Trait Implementations§
Source§impl<H> Default for HandlerOptions<H, DefaultFactory<H::Decoder>, DefaultFactory<H::Encoder>>
impl<H> Default for HandlerOptions<H, DefaultFactory<H::Decoder>, DefaultFactory<H::Encoder>>
Auto Trait Implementations§
impl<H, D, E> Freeze for HandlerOptions<H, D, E>
impl<H, D, E> RefUnwindSafe for HandlerOptions<H, D, E>
impl<H, D, E> Send for HandlerOptions<H, D, E>
impl<H, D, E> Sync for HandlerOptions<H, D, E>
impl<H, D, E> Unpin for HandlerOptions<H, D, E>
impl<H, D, E> UnwindSafe for HandlerOptions<H, D, E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more