pub struct IO<T> { /* private fields */ }
Expand description
An AVIO IO that connects FFmpeg AVIO context with Rust streams.
Implementations§
source§impl<T> IO<T>
impl<T> IO<T>
sourcepub fn stream_mut(&mut self) -> &mut T
pub fn stream_mut(&mut self) -> &mut T
Get mutable reference to the underlying stream.
sourcepub fn into_stream(self) -> T
pub fn into_stream(self) -> T
Take the underlying stream dropping this IO.
source§impl<T> IO<T>where
T: Read,
impl<T> IO<T>where
T: Read,
sourcepub fn from_read_stream(stream: T) -> Self
pub fn from_read_stream(stream: T) -> Self
Create a new IO from a given stream.
source§impl<T> IO<T>where
T: Read + Seek,
impl<T> IO<T>where
T: Read + Seek,
sourcepub fn from_seekable_read_stream(stream: T) -> Self
pub fn from_seekable_read_stream(stream: T) -> Self
Create a new IO from a given stream.