[][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: FnOnce(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: FnOnce(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: FnOnce(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 !RefUnwindSafe for Builder

impl Send for Builder

impl Sync for Builder

impl Unpin for Builder

impl !UnwindSafe for Builder

Blanket Implementations

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

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

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

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 = Infallible

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.