pub struct FipsEndpointPayload { /* private fields */ }Expand description
App-owned endpoint payload plus its queue/pressure policy.
FipsEndpointPayload::new classifies raw packet bytes once. Embedders that
already classified a packet while staging their own priority/bulk queues can
use from_classified to carry the same class into FIPS without parsing the
packet a second time.
Implementations§
Source§impl FipsEndpointPayload
impl FipsEndpointPayload
pub fn new(bytes: Vec<u8>) -> Self
pub fn from_classified(bytes: Vec<u8>, class: EndpointPayloadClass) -> Self
Sourcepub fn with_direct_fmp_endpoint_allowed(self) -> Self
pub fn with_direct_fmp_endpoint_allowed(self) -> Self
Allow this payload to use direct-FMP endpoint data when the route is direct.
Embedders should set this only after they know the remote endpoint can
receive DirectEndpointData; the default remains the compatible FSP path.
pub fn class(&self) -> EndpointPayloadClass
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn into_bytes(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for FipsEndpointPayload
impl Clone for FipsEndpointPayload
Source§fn clone(&self) -> FipsEndpointPayload
fn clone(&self) -> FipsEndpointPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FipsEndpointPayload
impl Debug for FipsEndpointPayload
impl Eq for FipsEndpointPayload
Source§impl PartialEq for FipsEndpointPayload
impl PartialEq for FipsEndpointPayload
Source§fn eq(&self, other: &FipsEndpointPayload) -> bool
fn eq(&self, other: &FipsEndpointPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FipsEndpointPayload
Auto Trait Implementations§
impl Freeze for FipsEndpointPayload
impl RefUnwindSafe for FipsEndpointPayload
impl Send for FipsEndpointPayload
impl Sync for FipsEndpointPayload
impl Unpin for FipsEndpointPayload
impl UnsafeUnpin for FipsEndpointPayload
impl UnwindSafe for FipsEndpointPayload
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<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 more