pub enum PushOutcome {
Accepted(usize),
TooLarge,
}Expand description
Outcome of a RingBuffer::push operation.
Distinguishes between a frame being accepted (possibly with evictions) and a frame being discarded because it can never fit in the buffer.
Variants§
Accepted(usize)
Frame was accepted. The usize is the number of older frames
that were evicted to make room (may be 0).
TooLarge
Frame was too large to ever fit in this buffer (even when empty) and was silently discarded. No data was written.
Trait Implementations§
Source§impl Clone for PushOutcome
impl Clone for PushOutcome
Source§fn clone(&self) -> PushOutcome
fn clone(&self) -> PushOutcome
Returns a duplicate 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 PushOutcome
impl Debug for PushOutcome
Source§impl PartialEq for PushOutcome
impl PartialEq for PushOutcome
impl Copy for PushOutcome
impl Eq for PushOutcome
impl StructuralPartialEq for PushOutcome
Auto Trait Implementations§
impl Freeze for PushOutcome
impl RefUnwindSafe for PushOutcome
impl Send for PushOutcome
impl Sync for PushOutcome
impl Unpin for PushOutcome
impl UnsafeUnpin for PushOutcome
impl UnwindSafe for PushOutcome
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