[−][src]Struct fibers_http_server::HandlerOptions
Options for a request handler.
Methods
impl<H> HandlerOptions<H, (), ()>
[src]
impl<H, D, E> HandlerOptions<H, D, E> where
H: HandleRequest,
[src]
H: HandleRequest,
pub fn decoder<F>(self, decoder_factory: F) -> HandlerOptions<H, F, E> where
F: Factory<Item = H::Decoder>,
[src]
F: Factory<Item = H::Decoder>,
Specifies the decoder factory that the handler will use.
pub fn default_decoder(self) -> HandlerOptions<H, DefaultFactory<H::Decoder>, E> where
H::Decoder: Default,
[src]
H::Decoder: Default,
Specifies that the handler will use the default decoder factory.
pub fn encoder<F>(self, encoder_factory: F) -> HandlerOptions<H, D, F> where
F: Factory<Item = H::Encoder>,
[src]
F: Factory<Item = H::Encoder>,
Specifies the encoder factory that the handler will use.
pub fn default_encoder(self) -> HandlerOptions<H, D, DefaultFactory<H::Encoder>> where
H::Encoder: Default,
[src]
H::Encoder: Default,
Specifies that the handler will use the default encoder factory.
Trait Implementations
impl<H> Default for HandlerOptions<H, DefaultFactory<H::Decoder>, DefaultFactory<H::Encoder>> where
H: HandleRequest,
H::Decoder: Default,
H::Encoder: Default,
[src]
H: HandleRequest,
H::Decoder: Default,
H::Encoder: Default,
impl<H: Debug, D: Debug, E: Debug> Debug for HandlerOptions<H, D, E>
[src]
Auto Trait Implementations
impl<H, D, E> Send for HandlerOptions<H, D, E> where
D: Send,
E: Send,
H: Send,
D: Send,
E: Send,
H: Send,
impl<H, D, E> Sync for HandlerOptions<H, D, E> where
D: Sync,
E: Sync,
H: Sync,
D: Sync,
E: Sync,
H: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,