pub enum Control<E> {
Disconnect(Reason<E>),
Terminated(Terminated),
}Variants§
Disconnect(Reason<E>)
Connection is prepared to disconnect
Terminated(Terminated)
Protocol dispatcher is terminated
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Control<E>where
E: Freeze,
impl<E> !RefUnwindSafe for Control<E>
impl<E> Send for Control<E>where
E: Send,
impl<E> Sync for Control<E>where
E: Sync,
impl<E> Unpin for Control<E>where
E: Unpin,
impl<E> !UnwindSafe for Control<E>
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