pub enum Control<E> {
Publish(Publish),
Disconnect(Disconnect),
Error(Error<E>),
ProtocolError(ProtocolError),
Closed(Closed),
PeerGone(PeerGone),
}
Expand description
Client control messages
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§
source§impl<E> Control<E>
impl<E> Control<E>
pub fn disconnect(&self, pkt: Disconnect) -> ControlAck
sourcepub fn ack(self) -> ControlAck
pub fn ack(self) -> ControlAck
Ack control message
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>where
E: Send,
impl<E> Sync for Control<E>where
E: Sync,
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