pub struct FipsEndpointBulkDataBuilder(/* private fields */);Expand description
Builder for one EndpointDataBulk body from borrowed packet slices.
Implementations§
Source§impl FipsEndpointBulkDataBuilder
impl FipsEndpointBulkDataBuilder
Sourcepub fn packet_count(&self) -> usize
pub fn packet_count(&self) -> usize
Number of endpoint packets currently encoded.
Sourcepub fn packet_bytes(&self) -> usize
pub fn packet_bytes(&self) -> usize
Sum of packet payload bytes currently encoded.
Sourcepub fn can_push_packet(&self, packet: &[u8]) -> bool
pub fn can_push_packet(&self, packet: &[u8]) -> bool
Whether packet fits in this body without exceeding FSP bulk limits.
Sourcepub fn push_packet(&mut self, packet: &[u8]) -> bool
pub fn push_packet(&mut self, packet: &[u8]) -> bool
Append one packet to this body.
Sourcepub fn finish(self) -> Option<FipsEndpointBulkData>
pub fn finish(self) -> Option<FipsEndpointBulkData>
Finish the body, returning None if no packets were added.
Trait Implementations§
Source§impl Debug for FipsEndpointBulkDataBuilder
impl Debug for FipsEndpointBulkDataBuilder
Source§impl Default for FipsEndpointBulkDataBuilder
impl Default for FipsEndpointBulkDataBuilder
Source§fn default() -> FipsEndpointBulkDataBuilder
fn default() -> FipsEndpointBulkDataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FipsEndpointBulkDataBuilder
impl RefUnwindSafe for FipsEndpointBulkDataBuilder
impl Send for FipsEndpointBulkDataBuilder
impl Sync for FipsEndpointBulkDataBuilder
impl Unpin for FipsEndpointBulkDataBuilder
impl UnsafeUnpin for FipsEndpointBulkDataBuilder
impl UnwindSafe for FipsEndpointBulkDataBuilder
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> 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 more