pub struct StdioStream { /* private fields */ }Expand description
Stdio stream — reads PES from stdin, writes PES to stdout. FMKV metadata header is written/read automatically.
Implementations§
Trait Implementations§
Source§impl Stream for StdioStream
impl Stream for StdioStream
Source§fn read(&mut self) -> Result<Option<PesFrame>>
fn read(&mut self) -> Result<Option<PesFrame>>
Read the next frame. Returns None at end of stream.
Source§fn codec_private(&self, track: usize) -> Option<Vec<u8>>
fn codec_private(&self, track: usize) -> Option<Vec<u8>>
Codec initialization data for a track (SPS/PPS, etc).
Source§fn headers_ready(&self) -> bool
fn headers_ready(&self) -> bool
True when codec_private is available for all video tracks.
Auto Trait Implementations§
impl Freeze for StdioStream
impl RefUnwindSafe for StdioStream
impl Send for StdioStream
impl Sync for StdioStream
impl Unpin for StdioStream
impl UnsafeUnpin for StdioStream
impl UnwindSafe for StdioStream
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