Enum AliasDecision
#[non_exhaustive]pub enum AliasDecision {
None,
Established(NonZeroU16),
New(NonZeroU16),
}Expand description
What to do with the topic alias for an outgoing PUBLISH (§3.3.2.3.4).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No alias: send the full topic name.
Established(NonZeroU16)
Reuse an already-established alias: send an empty topic with the alias.
New(NonZeroU16)
First use of a new alias: send the full topic name with the alias, to be
recorded with TopicAliasTable::confirm once the packet is written.
Trait Implementations§
§impl Clone for AliasDecision
impl Clone for AliasDecision
§fn clone(&self) -> AliasDecision
fn clone(&self) -> AliasDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AliasDecision
impl Debug for AliasDecision
§impl PartialEq for AliasDecision
impl PartialEq for AliasDecision
impl Copy for AliasDecision
impl Eq for AliasDecision
impl StructuralPartialEq for AliasDecision
Auto Trait Implementations§
impl Freeze for AliasDecision
impl RefUnwindSafe for AliasDecision
impl Send for AliasDecision
impl Sync for AliasDecision
impl Unpin for AliasDecision
impl UnwindSafe for AliasDecision
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