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
Trait Implementations§
Auto Trait Implementations§
impl<E> !RefUnwindSafe for ControlMessage<E>
impl<E> Send for ControlMessage<E>where E: Send,
impl<E> Sync for ControlMessage<E>where E: Sync,
impl<E> Unpin for ControlMessage<E>where E: Unpin,
impl<E> !UnwindSafe for ControlMessage<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