Enum gneiss_mqtt::config::RejoinSessionPolicy
source · #[non_exhaustive]pub enum RejoinSessionPolicy {
PostSuccess,
Always,
Never,
}
Expand description
Controls how the client attempts to rejoin MQTT sessions.
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.
PostSuccess
The client will not attempt to rejoin a session until it successfully connects for the very first time. After that point, it will always attempt to rejoin a session.
Always
The client will always attempt to rejoin a session. Until persistence is supported, this is technically a spec-non-compliant setting because the client cannot possibly have the correct session state on its initial connection attempt.
Never
The client will never attempt to rejoin a session.
Trait Implementations§
source§impl Clone for RejoinSessionPolicy
impl Clone for RejoinSessionPolicy
source§fn clone(&self) -> RejoinSessionPolicy
fn clone(&self) -> RejoinSessionPolicy
Returns a copy 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 RejoinSessionPolicy
impl Debug for RejoinSessionPolicy
source§impl Default for RejoinSessionPolicy
impl Default for RejoinSessionPolicy
source§fn default() -> RejoinSessionPolicy
fn default() -> RejoinSessionPolicy
Returns the “default value” for a type. Read more
source§impl PartialEq for RejoinSessionPolicy
impl PartialEq for RejoinSessionPolicy
source§fn eq(&self, other: &RejoinSessionPolicy) -> bool
fn eq(&self, other: &RejoinSessionPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RejoinSessionPolicy
impl Eq for RejoinSessionPolicy
impl StructuralPartialEq for RejoinSessionPolicy
Auto Trait Implementations§
impl Freeze for RejoinSessionPolicy
impl RefUnwindSafe for RejoinSessionPolicy
impl Send for RejoinSessionPolicy
impl Sync for RejoinSessionPolicy
impl Unpin for RejoinSessionPolicy
impl UnwindSafe for RejoinSessionPolicy
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