Enum plckit::DeliveryPolicy
source · pub enum DeliveryPolicy {
Always,
Optional,
Single,
SingleOptional,
}
Expand description
Delivery policies
Variants§
Always
always deliver, fail if no room (default)
Optional
skip delivery if no room
Single
always deliver the message but always in a single copy (latest)
SingleOptional
deliver a single latest copy, skip if no room
Trait Implementations§
source§impl Clone for DeliveryPolicy
impl Clone for DeliveryPolicy
source§fn clone(&self) -> DeliveryPolicy
fn clone(&self) -> DeliveryPolicy
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 DeliveryPolicy
impl Debug for DeliveryPolicy
source§impl Default for DeliveryPolicy
impl Default for DeliveryPolicy
source§fn default() -> DeliveryPolicy
fn default() -> DeliveryPolicy
Returns the “default value” for a type. Read more
source§impl PartialEq for DeliveryPolicy
impl PartialEq for DeliveryPolicy
source§fn eq(&self, other: &DeliveryPolicy) -> bool
fn eq(&self, other: &DeliveryPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeliveryPolicy
impl Eq for DeliveryPolicy
impl StructuralPartialEq for DeliveryPolicy
Auto Trait Implementations§
impl RefUnwindSafe for DeliveryPolicy
impl Send for DeliveryPolicy
impl Sync for DeliveryPolicy
impl Unpin for DeliveryPolicy
impl UnwindSafe for DeliveryPolicy
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