pub struct MediaSourceHandle {
pub stream: File,
pub len: Option<u64>,
}Expand description
A media stream the platform opened, and what it knows about it.
Fields§
§stream: FileThe descriptor to read. Seekable for a real file; a pipe for a provider that streams.
len: Option<u64>How long the whole thing is, when the platform knows.
A provider that streams cannot answer stat — that is what makes its
descriptor a pipe — but it listed a size for the document all the same,
and a decoder that knows the length can seek by it instead of waiting
for the stream to end to find out where the end is.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaSourceHandle
impl RefUnwindSafe for MediaSourceHandle
impl Send for MediaSourceHandle
impl Sync for MediaSourceHandle
impl Unpin for MediaSourceHandle
impl UnsafeUnpin for MediaSourceHandle
impl UnwindSafe for MediaSourceHandle
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