pub struct E2ECheckResult<'a> {
pub status: E2ECheckStatus,
pub counter: Option<u32>,
pub payload: Option<&'a [u8]>,
}Expand description
Result from an E2E check operation.
Fields§
§status: E2ECheckStatusStatus of the E2E check.
counter: Option<u32>Counter value extracted from the header (if parsing succeeded).
payload: Option<&'a [u8]>Extracted payload without E2E header (if check succeeded).
This is a borrowed subslice of the input protected buffer and is only
valid as long as that buffer is kept alive.
Implementations§
Source§impl<'a> E2ECheckResult<'a>
impl<'a> E2ECheckResult<'a>
Sourcepub fn to_owned_payload(&self) -> Option<Vec<u8>>
pub fn to_owned_payload(&self) -> Option<Vec<u8>>
Copy the extracted payload into an owned Vec<u8>.
Returns None if the check did not produce a payload (e.g. on error).
Trait Implementations§
Source§impl<'a> Clone for E2ECheckResult<'a>
impl<'a> Clone for E2ECheckResult<'a>
Source§fn clone(&self) -> E2ECheckResult<'a>
fn clone(&self) -> E2ECheckResult<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for E2ECheckResult<'a>
impl<'a> RefUnwindSafe for E2ECheckResult<'a>
impl<'a> Send for E2ECheckResult<'a>
impl<'a> Sync for E2ECheckResult<'a>
impl<'a> Unpin for E2ECheckResult<'a>
impl<'a> UnsafeUnpin for E2ECheckResult<'a>
impl<'a> UnwindSafe for E2ECheckResult<'a>
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