Enum ntex_mqtt::v3::control::ControlMessage
source · pub enum ControlMessage<E> {
Ping(Ping),
Disconnect(Disconnect),
Subscribe(Subscribe),
Unsubscribe(Unsubscribe),
Closed(Closed),
Error(Error<E>),
ProtocolError(ProtocolError),
PeerGone(PeerGone),
}
Variants
Ping(Ping)
Ping packet
Disconnect(Disconnect)
Disconnect packet
Subscribe(Subscribe)
Subscribe packet
Unsubscribe(Unsubscribe)
Unsubscribe packet
Closed(Closed)
Connection dropped
Error(Error<E>)
Service level error
ProtocolError(ProtocolError)
Protocol level error
PeerGone(PeerGone)
Peer is gone
Implementations
sourceimpl<E> ControlMessage<E>
impl<E> ControlMessage<E>
sourcepub fn disconnect(&self) -> ControlResult
pub fn disconnect(&self) -> ControlResult
Disconnects the client by sending DISCONNECT packet.
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