Enum tokio_shutdown::ShutdownReason
source · [−]pub enum ShutdownReason<R: Clone> {
BroadcasterClosed,
Reason(R),
}Variants
BroadcasterClosed
Reason(R)
Trait Implementations
sourceimpl<R: Clone + Clone> Clone for ShutdownReason<R>
impl<R: Clone + Clone> Clone for ShutdownReason<R>
sourcefn clone(&self) -> ShutdownReason<R>
fn clone(&self) -> ShutdownReason<R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl<R> RefUnwindSafe for ShutdownReason<R>where
R: RefUnwindSafe,
impl<R> Send for ShutdownReason<R>where
R: Send,
impl<R> Sync for ShutdownReason<R>where
R: Sync,
impl<R> Unpin for ShutdownReason<R>where
R: Unpin,
impl<R> UnwindSafe for ShutdownReason<R>where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more