pub struct GracefulShutdownConfig {
pub timeout: Duration,
pub force_after_timeout: bool,
pub notify_clients: bool,
pub save_state: bool,
}
Expand description
Graceful shutdown configuration
Fields§
§timeout: Duration
§force_after_timeout: bool
§notify_clients: bool
§save_state: bool
Trait Implementations§
Source§impl Clone for GracefulShutdownConfig
impl Clone for GracefulShutdownConfig
Source§fn clone(&self) -> GracefulShutdownConfig
fn clone(&self) -> GracefulShutdownConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GracefulShutdownConfig
impl RefUnwindSafe for GracefulShutdownConfig
impl Send for GracefulShutdownConfig
impl Sync for GracefulShutdownConfig
impl Unpin for GracefulShutdownConfig
impl UnwindSafe for GracefulShutdownConfig
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