pub enum Reason<E> {
Error(Error<E>),
ProtocolError(ConnectionError),
GoAway(GoAway),
PeerGone(PeerGone),
}Expand description
Disconnect reason
Variants§
Error(Error<E>)
Application level error from publish service
ProtocolError(ConnectionError)
Protocol level error
GoAway(GoAway)
Remote GoAway is received
PeerGone(PeerGone)
Peer is gone
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Reason<E>where
E: Freeze,
impl<E> !RefUnwindSafe for Reason<E>
impl<E> Send for Reason<E>where
E: Send,
impl<E> Sync for Reason<E>where
E: Sync,
impl<E> Unpin for Reason<E>where
E: Unpin,
impl<E> !UnwindSafe for Reason<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