pub struct FrontEndHandlerBuilder { /* private fields */ }Expand description
Builder for FrontEndHandler
Implementations§
Source§impl FrontEndHandlerBuilder
impl FrontEndHandlerBuilder
Sourcepub fn with_dispatcher(self, dispatcher: Dispatcher) -> Self
pub fn with_dispatcher(self, dispatcher: Dispatcher) -> Self
Add a dispatcher to the builder
Sourcepub fn with_authenticator(
self,
auth_type: AuthType,
authenticator: Box<dyn Authenticate + Send + Sync>,
) -> Self
pub fn with_authenticator( self, auth_type: AuthType, authenticator: Box<dyn Authenticate + Send + Sync>, ) -> Self
Add an authenticator to the builder
Sourcepub fn with_body_len_limit(self, body_len_limit: usize) -> Self
pub fn with_body_len_limit(self, body_len_limit: usize) -> Self
Set a limit on the maximal body length received
Sourcepub fn build(self) -> Result<FrontEndHandler>
pub fn build(self) -> Result<FrontEndHandler>
Build into a FrontEndHandler
Trait Implementations§
Source§impl Debug for FrontEndHandlerBuilder
impl Debug for FrontEndHandlerBuilder
Source§impl Default for FrontEndHandlerBuilder
impl Default for FrontEndHandlerBuilder
Source§fn default() -> FrontEndHandlerBuilder
fn default() -> FrontEndHandlerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrontEndHandlerBuilder
impl !RefUnwindSafe for FrontEndHandlerBuilder
impl Send for FrontEndHandlerBuilder
impl Sync for FrontEndHandlerBuilder
impl Unpin for FrontEndHandlerBuilder
impl !UnwindSafe for FrontEndHandlerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more