pub enum ControlMessage<E> {
Publish(Publish),
Closed(Closed),
Error(Error<E>),
ProtocolError(ProtocolError),
PeerGone(PeerGone),
}
Variants§
Publish(Publish)
Unhandled publish packet
Closed(Closed)
Connection closed
Error(Error<E>)
Application level error from resources and control services
ProtocolError(ProtocolError)
Protocol level error
PeerGone(PeerGone)
Peer is gone
Implementations§
source§impl<E> ControlMessage<E>
impl<E> ControlMessage<E>
sourcepub fn disconnect(&self) -> ControlResult
pub fn disconnect(&self) -> ControlResult
Initiate clean disconnect