pub enum Control<E> {
AppError(AppError<E>),
ConnectionError(ConnectionError),
GoAway(GoAway),
PeerGone(PeerGone),
Terminated(Terminated),
}
Variants§
AppError(AppError<E>)
Application level error from publish service
ConnectionError(ConnectionError)
Protocol level error
GoAway(GoAway)
Remote GoAway is received
PeerGone(PeerGone)
Peer is gone
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>
impl<E> !Sync for Control<E>
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