#[repr(u8)]pub enum DiscardPolicy {
Old = 0,
New = 1,
}
Expand description
DiscardPolicy
determines how we proceed when limits of messages or bytes are hit. The default, Old
will
remove older messages. New
will fail to store the new message.
Variants§
Old = 0
will remove older messages when limits are hit.
New = 1
will error on a StoreMsg call when limits are hit
Trait Implementations§
Source§impl Clone for DiscardPolicy
impl Clone for DiscardPolicy
Source§fn clone(&self) -> DiscardPolicy
fn clone(&self) -> DiscardPolicy
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 DiscardPolicy
impl Debug for DiscardPolicy
Source§impl Default for DiscardPolicy
impl Default for DiscardPolicy
Source§fn default() -> DiscardPolicy
fn default() -> DiscardPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscardPolicy
impl<'de> Deserialize<'de> for DiscardPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DiscardPolicy
impl PartialEq for DiscardPolicy
Source§impl Serialize for DiscardPolicy
impl Serialize for DiscardPolicy
impl Copy for DiscardPolicy
impl Eq for DiscardPolicy
impl StructuralPartialEq for DiscardPolicy
Auto Trait Implementations§
impl Freeze for DiscardPolicy
impl RefUnwindSafe for DiscardPolicy
impl Send for DiscardPolicy
impl Sync for DiscardPolicy
impl Unpin for DiscardPolicy
impl UnwindSafe for DiscardPolicy
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