[−][src]Struct saphir::server::Builder
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]
F: Fn(RouterBuilder) -> RouterBuilder,
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]
F: Fn(MidStackBuilder) -> MidStackBuilder,
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]
F: Fn(ListenerBuilder) -> ListenerBuilder,
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
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 = Infallible
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
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,