pub struct Queue<Q, O>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<Q, O> Queue<Packet> for PcapQueue<Q, O>
impl<Q, O> Queue<Packet> for PcapQueue<Q, O>
fn push_lazy( &mut self, value: &mut dyn Pushable<Packet>, ) -> Result<Option<Packet>, PushError>
fn push_with_notify( &mut self, value: &mut dyn Pushable<Packet>, cx: &mut Context<'_>, ) -> Result<Option<Packet>, PushError>
fn pop(&mut self) -> Result<Packet, PopError>
fn pop_with_notify(&mut self, cx: &mut Context<'_>) -> Result<Packet, PopError>
fn close(&mut self) -> Result<(), CloseError>
fn is_closed(&self) -> bool
fn is_empty(&self) -> bool
fn is_full(&self) -> bool
fn len(&self) -> usize
fn capacity(&self) -> Option<usize>
Source§fn push(&mut self, value: T) -> Result<Option<T>, (PushError, T)>
fn push(&mut self, value: T) -> Result<Option<T>, (PushError, T)>
Pushes
value
into the queue while returning it as an error if the operation failsfn check_push(&self) -> Result<(), PushError>
Auto Trait Implementations§
impl<Q, O> Freeze for PcapQueue<Q, O>
impl<Q, O> RefUnwindSafe for PcapQueue<Q, O>where
Q: RefUnwindSafe,
O: RefUnwindSafe,
impl<Q, O> Send for PcapQueue<Q, O>
impl<Q, O> Sync for PcapQueue<Q, O>
impl<Q, O> Unpin for PcapQueue<Q, O>
impl<Q, O> UnwindSafe for PcapQueue<Q, O>where
Q: UnwindSafe,
O: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more