pub struct Frame {
pub timestamp: Timestamp,
pub payload: Bytes,
pub created: Instant,
}Expand description
A completed frame: an optional timestamp, its full, contiguous payload, and when it was created in this node’s cache.
Reading a frame whole is a zero-copy slice of what its group stores, except for a
frame larger than a storage segment that arrived in pieces: the group keeps that as
separate segments, so a whole read copies them into one buffer. Streaming it through
Consumer::poll_read_chunk hands out each segment without a copy.
Fields§
§timestamp: TimestampPresentation timestamp, at the parent track’s timescale, or on a scale-less track
Timestamp::unscaled at its group’s key.
payload: BytesThe full frame payload.
created: InstantWhen the frame was created in this node’s cache, as its last byte landed, on the ambient clock; writing the frame to a group replaces any value set here.
Implementations§
Trait Implementations§
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