#[repr(u8)]
pub enum RetainHandling {
SendRetainedOnSubscribe,
SendRetainedOnNew,
DontSendRetained,
}
Expand description
The options for subscription retain handling.
Variants
SendRetainedOnSubscribe
Send retained messages at the time of the subscribe
SendRetainedOnNew
Send retained messages on subscribe only if subscription is new
DontSendRetained
Do not send retained messages at all
Trait Implementations
sourceimpl Clone for RetainHandling
impl Clone for RetainHandling
sourcefn clone(&self) -> RetainHandling
fn clone(&self) -> RetainHandling
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 RetainHandling
impl Debug for RetainHandling
sourceimpl Default for RetainHandling
impl Default for RetainHandling
sourceimpl Display for RetainHandling
impl Display for RetainHandling
sourceimpl PartialEq<RetainHandling> for RetainHandling
impl PartialEq<RetainHandling> for RetainHandling
impl Copy for RetainHandling
impl StructuralPartialEq for RetainHandling
Auto Trait Implementations
impl RefUnwindSafe for RetainHandling
impl Send for RetainHandling
impl Sync for RetainHandling
impl Unpin for RetainHandling
impl UnwindSafe for RetainHandling
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
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