pub struct GracefulShutdownBuilder<State> { /* private fields */ }Expand description
Typestate builder for GracefulShutdown. Created via GracefulShutdown::builder.
Both unix and windows must be called (in that order)
before build becomes available. The setter for the platform that does not
match the current target accepts its argument without using it, so cross-platform code can
build a value without cfg gates.
Trait Implementations§
Source§impl<State> Clone for GracefulShutdownBuilder<State>where
State: Clone,
impl<State> Clone for GracefulShutdownBuilder<State>where
State: Clone,
Source§fn clone(&self) -> GracefulShutdownBuilder<State>
fn clone(&self) -> GracefulShutdownBuilder<State>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<State> Freeze for GracefulShutdownBuilder<State>
impl<State> RefUnwindSafe for GracefulShutdownBuilder<State>
impl<State> Send for GracefulShutdownBuilder<State>
impl<State> Sync for GracefulShutdownBuilder<State>
impl<State> Unpin for GracefulShutdownBuilder<State>
impl<State> UnsafeUnpin for GracefulShutdownBuilder<State>
impl<State> UnwindSafe for GracefulShutdownBuilder<State>
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