pub struct MediaRead {
pub session: SessionId,
pub handle: PlaybackHandle,
pub offset: u64,
pub length: u64,
pub epoch: u32,
pub segment: Option<u32>,
pub variant: u32,
}Fields§
§session: SessionId§handle: PlaybackHandle§offset: u64§length: u64Capped at MAX_READ.
epoch: u32The encode this read is for: byte offsets mean nothing across a restart. 0 for direct play and a playback’s first encode.
segment: Option<u32>An HLS segment to read in, 0 being the init segment; None
reads the file itself (direct play) or the progressive output.
variant: u32For HLS, the variant the segment is of: a ladder’s rung,
as v{n}/ in its playlist. 0 for one encode, and for anything
that is not a segment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaRead
impl<'de> Deserialize<'de> for MediaRead
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MediaRead
impl StructuralPartialEq for MediaRead
Auto Trait Implementations§
impl Forget for MediaRead
impl Freeze for MediaRead
impl Move for MediaRead
impl RefUnwindSafe for MediaRead
impl Send for MediaRead
impl Sync for MediaRead
impl Unpin for MediaRead
impl UnsafeUnpin for MediaRead
impl UnwindSafe for MediaRead
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