pub struct Graceful { /* private fields */ }Expand description
Manages graceful shutdown of async tasks.
Combines cancellation signaling with task tracking to ensure clean shutdown of all spawned tasks. Clone this freely - all clones share the same underlying state.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graceful
impl !RefUnwindSafe for Graceful
impl Send for Graceful
impl Sync for Graceful
impl Unpin for Graceful
impl !UnwindSafe for Graceful
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