pub enum Control<E> {
Publish(Publish),
PublishRelease(PublishRelease),
Closed(Closed),
Error(Error<E>),
ProtocolError(ProtocolError),
PeerGone(PeerGone),
}
Expand description
Client control messages
Variants§
Publish(Publish)
Unhandled publish packet
PublishRelease(PublishRelease)
Publish release 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>
impl<E> !RefUnwindSafe for Control<E>
impl<E> !Send for Control<E>
impl<E> !Sync for Control<E>
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