pub struct DecodedFrame<'a> {
pub protocol: ProtocolVersion,
pub flags: u8,
pub kind: MessageKind,
pub payload: &'a [u8],
}Expand description
Decoded, integrity-checked protocol frame.
Fields§
§protocol: ProtocolVersionProtocol version from the frame header.
flags: u8Reserved feature flags.
kind: MessageKindPayload message kind.
payload: &'a [u8]Verified serialized payload.
Trait Implementations§
Source§impl<'a> Clone for DecodedFrame<'a>
impl<'a> Clone for DecodedFrame<'a>
impl<'a> Copy for DecodedFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecodedFrame<'a>
impl<'a> RefUnwindSafe for DecodedFrame<'a>
impl<'a> Send for DecodedFrame<'a>
impl<'a> Sync for DecodedFrame<'a>
impl<'a> Unpin for DecodedFrame<'a>
impl<'a> UnsafeUnpin for DecodedFrame<'a>
impl<'a> UnwindSafe for DecodedFrame<'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