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>
impl<T> IO<T>
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.
Auto Trait Implementations§
impl<T> Freeze for IO<T>
impl<T> RefUnwindSafe for IO<T>where
T: RefUnwindSafe,
impl<T> Send for IO<T>where
T: Send,
impl<T> Sync for IO<T>where
T: Sync,
impl<T> Unpin for IO<T>
impl<T> UnwindSafe for IO<T>where
T: UnwindSafe,
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