#[non_exhaustive]pub struct Frame {
pub bytes: Vec<u8>,
pub kind: FrameKind,
pub seq: Option<u64>,
}Expand description
Single stream frame appended via append_frame (RFC-012 §3.3.0).
Today’s FCALL takes the byte payload + frame_type + optional seq as
discrete ARGV; Stage 0 collects them into a named type for trait
signatures.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bytes: Vec<u8>§kind: FrameKind§seq: Option<u64>Optional monotonic sequence. Set by the caller when the stream
protocol is sequence-bound; None lets the backend assign.
Implementations§
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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