pub struct AudioDecoder { /* private fields */ }Implementations§
Source§impl AudioDecoder
impl AudioDecoder
pub fn open(input: &InputContext, stream_index: usize) -> Result<Self>
pub fn stream_index(&self) -> usize
pub fn time_base(&self) -> Rational
pub fn send_packet(&mut self, packet: &Packet) -> Result<()>
pub fn send_eof(&mut self) -> Result<()>
pub fn flush(&mut self)
pub fn receive_frame(&mut self) -> Result<Option<DecodedAudioFrame>>
Trait Implementations§
Source§impl Drop for AudioDecoder
impl Drop for AudioDecoder
impl Send for AudioDecoder
Auto Trait Implementations§
impl Freeze for AudioDecoder
impl RefUnwindSafe for AudioDecoder
impl !Sync for AudioDecoder
impl Unpin for AudioDecoder
impl UnsafeUnpin for AudioDecoder
impl UnwindSafe for AudioDecoder
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