Enum mqtt::control::packet_type::ControlType
source · [−]#[repr(u8)]
pub enum ControlType {
Show 14 variants
Connect,
ConnectAcknowledgement,
Publish,
PublishAcknowledgement,
PublishReceived,
PublishRelease,
PublishComplete,
Subscribe,
SubscribeAcknowledgement,
Unsubscribe,
UnsubscribeAcknowledgement,
PingRequest,
PingResponse,
Disconnect,
}
Expand description
Defined control types
Variants
Connect
Client request to connect to Server
ConnectAcknowledgement
Connect acknowledgment
Publish
Publish message
PublishAcknowledgement
Publish acknowledgment
PublishReceived
Publish received (assured delivery part 1)
PublishRelease
Publish release (assured delivery part 2)
PublishComplete
Publish complete (assured delivery part 3)
Subscribe
Client subscribe request
SubscribeAcknowledgement
Subscribe acknowledgment
Unsubscribe
Unsubscribe request
UnsubscribeAcknowledgement
Unsubscribe acknowledgment
PingRequest
PING request
PingResponse
PING response
Disconnect
Client is disconnecting
Trait Implementations
sourceimpl Clone for ControlType
impl Clone for ControlType
sourcefn clone(&self) -> ControlType
fn clone(&self) -> ControlType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ControlType
impl Debug for ControlType
sourceimpl PartialEq<ControlType> for ControlType
impl PartialEq<ControlType> for ControlType
impl Copy for ControlType
impl Eq for ControlType
impl StructuralEq for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnwindSafe for ControlType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more