[−][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: FnOnce(RouterBuilder) -> RouterBuilder,
[src]
F: FnOnce(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: FnOnce(MidStackBuilder) -> MidStackBuilder,
[src]
F: FnOnce(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: FnOnce(ListenerBuilder) -> ListenerBuilder,
[src]
F: FnOnce(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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,