pub struct DeliveredPayload {
pub stream_type: StreamType,
pub stream_id: StreamId,
pub sequence_no: SequenceNo,
pub flags: u16,
pub plaintext: Vec<u8>,
pub codec: PayloadCodec,
}Expand description
Information about a payload delivered by GBP to a sub-protocol.
Fields§
§stream_type: StreamTypeStream class on which the frame arrived.
stream_id: StreamIdStream id from the frame (preserved so receivers can demultiplex multiple sub-streams).
sequence_no: SequenceNoSequence number after passing the replay window.
flags: u16Frame flag bits, copied as-is.
plaintext: Vec<u8>Decrypted plaintext bytes.
codec: PayloadCodecCodec used to encode the plaintext (from the frame’s pf field).
Trait Implementations§
Source§impl Clone for DeliveredPayload
impl Clone for DeliveredPayload
Source§fn clone(&self) -> DeliveredPayload
fn clone(&self) -> DeliveredPayload
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 Freeze for DeliveredPayload
impl RefUnwindSafe for DeliveredPayload
impl Send for DeliveredPayload
impl Sync for DeliveredPayload
impl Unpin for DeliveredPayload
impl UnsafeUnpin for DeliveredPayload
impl UnwindSafe for DeliveredPayload
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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