pub struct MaintenanceModeBuilder { /* private fields */ }
Expand description
Builder for creating maintenance mode middleware with shared state
Implementations§
Source§impl MaintenanceModeBuilder
impl MaintenanceModeBuilder
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if enabled
Sourcepub fn build(&self) -> MaintenanceModeMiddleware
pub fn build(&self) -> MaintenanceModeMiddleware
Build middleware with shared state
Sourcepub fn build_with_config(
&self,
config: MaintenanceModeConfig,
) -> MaintenanceModeMiddleware
pub fn build_with_config( &self, config: MaintenanceModeConfig, ) -> MaintenanceModeMiddleware
Build middleware with custom configuration but shared enabled state
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaintenanceModeBuilder
impl RefUnwindSafe for MaintenanceModeBuilder
impl Send for MaintenanceModeBuilder
impl Sync for MaintenanceModeBuilder
impl Unpin for MaintenanceModeBuilder
impl UnwindSafe for MaintenanceModeBuilder
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