pub enum PacketBatch {
Pinned(PinnedPacketBatch),
Bytes(BytesPacketBatch),
}👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Variants§
Pinned(PinnedPacketBatch)
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Bytes(BytesPacketBatch)
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Implementations§
Source§impl PacketBatch
impl PacketBatch
Sourcepub fn is_empty(&self) -> bool
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn is_empty(&self) -> bool
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns true if the batch contains no elements.
Sourcepub fn get(&self, index: usize) -> Option<PacketRef<'_>>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn get(&self, index: usize) -> Option<PacketRef<'_>>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns a reference to an element.
pub fn get_mut(&mut self, index: usize) -> Option<PacketRefMut<'_>>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn iter(&self) -> PacketBatchIter<'_> ⓘ
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn iter_mut(&mut self) -> PacketBatchIterMut<'_> ⓘ
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn par_iter(&self) -> PacketBatchParIter<'_>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn par_iter_mut(&mut self) -> PacketBatchParIterMut<'_>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.pub fn len(&self) -> usize
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.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<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 From<BytesPacketBatch> for PacketBatch
impl From<BytesPacketBatch> for PacketBatch
Source§fn from(batch: BytesPacketBatch) -> Self
fn from(batch: BytesPacketBatch) -> Self
Converts to this type from the input type.
Source§impl From<PinnedPacketBatch> for PacketBatch
impl From<PinnedPacketBatch> for PacketBatch
Source§fn from(batch: PinnedPacketBatch) -> Self
fn from(batch: PinnedPacketBatch) -> Self
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>) -> Self
fn from(batch: Vec<BytesPacket>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a PacketBatch
impl<'a> IntoIterator for &'a PacketBatch
Source§impl<'a> IntoIterator for &'a mut PacketBatch
impl<'a> IntoIterator for &'a mut PacketBatch
Source§impl<'a> IntoParallelIterator for &'a PacketBatch
impl<'a> IntoParallelIterator for &'a PacketBatch
Source§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) -> Self::Iter
fn into_par_iter(self) -> Self::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
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<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<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