pub enum ControlMessage<E> {
Publish(Publish),
Disconnect(Disconnect),
Error(Error<E>),
ProtocolError(ProtocolError),
Closed(Closed),
PeerGone(PeerGone),
}
Variants
Publish(Publish)
Unhandled publish packet
Disconnect(Disconnect)
Disconnect packet
Error(Error<E>)
Application level error from resources and control services
ProtocolError(ProtocolError)
Protocol level error
Closed(Closed)
Connection closed
PeerGone(PeerGone)
Peer is gone
Implementations
sourceimpl<E> ControlMessage<E>
impl<E> ControlMessage<E>
pub fn disconnect(&self, pkt: Disconnect) -> ControlResult
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more