#[non_exhaustive]pub struct Encoded {
pub payload: Bytes,
pub keyframe: bool,
}Expand description
One encoded frame, and the group boundary it implies.
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.payload: BytesThe frame payload, DEFLATE-compressed when ProducerConfig::compression is set.
keyframe: boolWhether this frame is a group header, which must open a new group.
The encoder decides this, never the caller: the op budget and the frame cap force a new group independently of which edit was requested.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Encoded
impl RefUnwindSafe for Encoded
impl Send for Encoded
impl Sync for Encoded
impl Unpin for Encoded
impl UnsafeUnpin for Encoded
impl UnwindSafe for Encoded
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