pub enum RetainForwardRule {
OnEverySubscribe = 0,
OnNewSubscribe = 1,
Never = 2,
}
Expand description
RetainForwardRule part of Subscription option defined by MQTT spec.
Variants§
Trait Implementations§
Source§impl Clone for RetainForwardRule
impl Clone for RetainForwardRule
Source§fn clone(&self) -> RetainForwardRule
fn clone(&self) -> RetainForwardRule
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 moreSource§impl Debug for RetainForwardRule
impl Debug for RetainForwardRule
Source§impl Default for RetainForwardRule
impl Default for RetainForwardRule
Source§fn default() -> RetainForwardRule
fn default() -> RetainForwardRule
Returns the “default value” for a type. Read more
Source§impl From<RetainForwardRule> for u8
impl From<RetainForwardRule> for u8
Source§fn from(val: RetainForwardRule) -> u8
fn from(val: RetainForwardRule) -> u8
Converts to this type from the input type.
Source§impl PartialEq for RetainForwardRule
impl PartialEq for RetainForwardRule
Source§impl TryFrom<u8> for RetainForwardRule
impl TryFrom<u8> for RetainForwardRule
impl Copy for RetainForwardRule
impl Eq for RetainForwardRule
impl StructuralPartialEq for RetainForwardRule
Auto Trait Implementations§
impl Freeze for RetainForwardRule
impl RefUnwindSafe for RetainForwardRule
impl Send for RetainForwardRule
impl Sync for RetainForwardRule
impl Unpin for RetainForwardRule
impl UnwindSafe for RetainForwardRule
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