pub enum BufferOverflowPolicy {
DropNewest,
DropOldest,
Error,
}Expand description
Rule applied when a full buffer receives another packet.
Variants§
DropNewest
Drop the incoming (newest) packet.
DropOldest
Drop the oldest buffered packet to make room.
Error
Treat the overflow as an error.
Implementations§
Trait Implementations§
Source§impl Clone for BufferOverflowPolicy
impl Clone for BufferOverflowPolicy
Source§fn clone(&self) -> BufferOverflowPolicy
fn clone(&self) -> BufferOverflowPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BufferOverflowPolicy
Source§impl Debug for BufferOverflowPolicy
impl Debug for BufferOverflowPolicy
impl Eq for BufferOverflowPolicy
Source§impl PartialEq for BufferOverflowPolicy
impl PartialEq for BufferOverflowPolicy
Source§fn eq(&self, other: &BufferOverflowPolicy) -> bool
fn eq(&self, other: &BufferOverflowPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BufferOverflowPolicy
Auto Trait Implementations§
impl Freeze for BufferOverflowPolicy
impl RefUnwindSafe for BufferOverflowPolicy
impl Send for BufferOverflowPolicy
impl Sync for BufferOverflowPolicy
impl Unpin for BufferOverflowPolicy
impl UnsafeUnpin for BufferOverflowPolicy
impl UnwindSafe for BufferOverflowPolicy
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