pub struct SampleFlags(/* private fields */);Expand description
Per-sample flags relevant to fragmentation and segment boundaries.
A hand-rolled u8 flag set, so sheathe-core needs no dependency beyond
thiserror.
Implementations§
Source§impl SampleFlags
impl SampleFlags
Sourcepub const KEYFRAME: SampleFlags
pub const KEYFRAME: SampleFlags
This sample is a sync sample (IDR / keyframe) — a valid segment start.
Sourcepub const DISPOSABLE: SampleFlags
pub const DISPOSABLE: SampleFlags
This sample is not depended on by others (droppable).
Trait Implementations§
Source§impl BitOr for SampleFlags
impl BitOr for SampleFlags
Source§impl Clone for SampleFlags
impl Clone for SampleFlags
Source§fn clone(&self) -> SampleFlags
fn clone(&self) -> SampleFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampleFlags
Source§impl Debug for SampleFlags
impl Debug for SampleFlags
Source§impl Default for SampleFlags
impl Default for SampleFlags
Source§fn default() -> SampleFlags
fn default() -> SampleFlags
Returns the “default value” for a type. Read more
impl Eq for SampleFlags
Source§impl PartialEq for SampleFlags
impl PartialEq for SampleFlags
Source§fn eq(&self, other: &SampleFlags) -> bool
fn eq(&self, other: &SampleFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SampleFlags
Auto Trait Implementations§
impl Freeze for SampleFlags
impl RefUnwindSafe for SampleFlags
impl Send for SampleFlags
impl Sync for SampleFlags
impl Unpin for SampleFlags
impl UnsafeUnpin for SampleFlags
impl UnwindSafe for SampleFlags
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