pub enum Control<E> {
Publish(Publish),
Closed(Closed),
Error(Error<E>),
ProtocolError(ProtocolError),
PeerGone(PeerGone),
}
Expand description
Client control messages
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> Control<E>
impl<E> Control<E>
sourcepub fn disconnect(&self) -> ControlAck
pub fn disconnect(&self) -> ControlAck
Initiate clean disconnect
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