pub enum PacketBatch {
Pinned(PinnedPacketBatch),
Bytes(BytesPacketBatch),
}Variants§
Pinned(PinnedPacketBatch)
Bytes(BytesPacketBatch)
Implementations§
Source§impl PacketBatch
impl PacketBatch
pub fn get_mut(&mut self, index: usize) -> Option<PacketRefMut<'_>>
pub fn iter(&self) -> PacketBatchIter<'_>
pub fn iter_mut(&mut self) -> PacketBatchIterMut<'_>
pub fn par_iter(&self) -> PacketBatchParIter<'_>
pub fn par_iter_mut(&mut self) -> PacketBatchParIterMut<'_>
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for PacketBatch
impl Clone for PacketBatch
Source§fn clone(&self) -> PacketBatch
fn clone(&self) -> PacketBatch
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 PacketBatch
impl Debug for PacketBatch
Source§impl<'de> Deserialize<'de> for PacketBatch
impl<'de> Deserialize<'de> for PacketBatch
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PacketBatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PacketBatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BytesPacketBatch> for PacketBatch
impl From<BytesPacketBatch> for PacketBatch
Source§fn from(batch: BytesPacketBatch) -> PacketBatch
fn from(batch: BytesPacketBatch) -> PacketBatch
Converts to this type from the input type.
Source§impl From<PinnedPacketBatch> for PacketBatch
impl From<PinnedPacketBatch> for PacketBatch
Source§fn from(batch: PinnedPacketBatch) -> PacketBatch
fn from(batch: PinnedPacketBatch) -> PacketBatch
Converts to this type from the input type.
Source§impl From<Vec<BytesPacket>> for PacketBatch
impl From<Vec<BytesPacket>> for PacketBatch
Source§fn from(batch: Vec<BytesPacket>) -> PacketBatch
fn from(batch: Vec<BytesPacket>) -> PacketBatch
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a PacketBatch
impl<'a> IntoIterator for &'a PacketBatch
Source§type IntoIter = PacketBatchIter<'a>
type IntoIter = PacketBatchIter<'a>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a PacketBatch as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a PacketBatch as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<'a> IntoIterator for &'a mut PacketBatch
impl<'a> IntoIterator for &'a mut PacketBatch
Source§type Item = PacketRefMut<'a>
type Item = PacketRefMut<'a>
The type of the elements being iterated over.
Source§type IntoIter = PacketBatchIterMut<'a>
type IntoIter = PacketBatchIterMut<'a>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a mut PacketBatch as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a mut PacketBatch as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<'a> IntoParallelIterator for &'a PacketBatch
impl<'a> IntoParallelIterator for &'a PacketBatch
Source§type Iter = PacketBatchParIter<'a>
type Iter = PacketBatchParIter<'a>
The parallel iterator type that will be created.
Source§fn into_par_iter(self) -> <&'a PacketBatch as IntoParallelIterator>::Iter
fn into_par_iter(self) -> <&'a PacketBatch as IntoParallelIterator>::Iter
Converts
self into a parallel iterator. Read moreSource§impl<'a> IntoParallelIterator for &'a mut PacketBatch
impl<'a> IntoParallelIterator for &'a mut PacketBatch
Source§type Iter = PacketBatchParIterMut<'a>
type Iter = PacketBatchParIterMut<'a>
The parallel iterator type that will be created.
Source§type Item = PacketRefMut<'a>
type Item = PacketRefMut<'a>
The type of item that the parallel iterator will produce.
Source§fn into_par_iter(self) -> <&'a mut PacketBatch as IntoParallelIterator>::Iter
fn into_par_iter(self) -> <&'a mut PacketBatch as IntoParallelIterator>::Iter
Converts
self into a parallel iterator. Read moreSource§impl PartialEq for PacketBatch
impl PartialEq for PacketBatch
Source§impl Serialize for PacketBatch
impl Serialize for PacketBatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PacketBatch
impl StructuralPartialEq for PacketBatch
Auto Trait Implementations§
impl Freeze for PacketBatch
impl RefUnwindSafe for PacketBatch
impl Send for PacketBatch
impl Sync for PacketBatch
impl Unpin for PacketBatch
impl UnwindSafe for PacketBatch
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<'data, I> IntoParallelRefIterator<'data> for I
impl<'data, I> IntoParallelRefIterator<'data> for I
Source§impl<'data, I> IntoParallelRefMutIterator<'data> for I
impl<'data, I> IntoParallelRefMutIterator<'data> for I
Source§type Iter = <&'data mut I as IntoParallelIterator>::Iter
type Iter = <&'data mut I as IntoParallelIterator>::Iter
The type of iterator that will be created.
Source§type Item = <&'data mut I as IntoParallelIterator>::Item
type Item = <&'data mut I as IntoParallelIterator>::Item
The type of item that will be produced; this is typically an
&'data mut T reference.Source§fn par_iter_mut(
&'data mut self,
) -> <I as IntoParallelRefMutIterator<'data>>::Iter
fn par_iter_mut( &'data mut self, ) -> <I as IntoParallelRefMutIterator<'data>>::Iter
Creates the parallel iterator from
self. Read more