[][src]Struct fibers_http_server::HandlerOptions

pub struct HandlerOptions<H, D, E> { /* fields omitted */ }

Options for a request handler.

Methods

impl<H> HandlerOptions<H, (), ()>[src]

pub fn new() -> Self[src]

Makes a new HandlerOptions instance.

impl<H, D, E> HandlerOptions<H, D, E> where
    H: HandleRequest
[src]

pub fn decoder<F>(self, decoder_factory: F) -> HandlerOptions<H, F, E> where
    F: Factory<Item = H::Decoder>, 
[src]

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]

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]

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]

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]

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

impl<H, D, E> Sync for HandlerOptions<H, D, E> where
    D: Sync,
    E: Sync,
    H: Sync

impl<H, D, E> Unpin for HandlerOptions<H, D, E> where
    D: Unpin,
    E: Unpin,
    H: Unpin

impl<H, D, E> UnwindSafe for HandlerOptions<H, D, E> where
    D: UnwindSafe,
    E: UnwindSafe,
    H: UnwindSafe

impl<H, D, E> RefUnwindSafe for HandlerOptions<H, D, E> where
    D: RefUnwindSafe,
    E: RefUnwindSafe,
    H: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]