[][src]Struct saphir::server::Builder

pub struct Builder { /* fields omitted */ }

Builder for the Server type

Methods

impl Builder[src]

pub fn new() -> Self[src]

Creates a new builder

pub fn configure_router<F>(self, config_fn: F) -> Self where
    F: Fn(RouterBuilder) -> RouterBuilder
[src]

This method will call the provided closure with a mutable ref of the router Once into the closure it is possible to add controllers to the router.

pub fn configure_middlewares<F>(self, config_fn: F) -> Self where
    F: Fn(MidStackBuilder) -> MidStackBuilder
[src]

This method will call the provided closure with a mutable ref of the middleware_stack Once into the closure it is possible to add middlewares to the middleware_stack.

pub fn configure_listener<F>(self, config_fn: F) -> Self where
    F: Fn(ListenerBuilder) -> ListenerBuilder
[src]

This method will call the provided closure with a mutable ref of the listener configurations Once into the closure it is possible to set the uri and ssl file paths.

pub fn build(self) -> Server[src]

Converts the builder into the Server type

Auto Trait Implementations

impl Send for Builder

impl Sync for Builder

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T, U> TryInto 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> BorrowMut for T where
    T: ?Sized
[src]

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

impl<T> Erased for T