#[non_exhaustive]pub struct RawFrame {
pub leader: Leader,
pub payload: Bytes,
pub trailer: Option<Trailer>,
}Expand description
A block as received from the U3V stream, before conversion to the
transport-agnostic Frame type.
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.leader: LeaderLeader containing image metadata.
payload: BytesThe payload bytes that arrived: up to the trailer’s valid payload size when there is a trailer.
trailer: Option<Trailer>The trailer, with status and block id; None for a block given up
before it — a transfer failed, the next leader came first, or the
device went quiet mid-block.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawFrame
impl RefUnwindSafe for RawFrame
impl Send for RawFrame
impl Sync for RawFrame
impl Unpin for RawFrame
impl UnsafeUnpin for RawFrame
impl UnwindSafe for RawFrame
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