Enum cros_codecs::decoder::DecoderEvent
source · pub enum DecoderEvent<'a, M> {
FrameReady(Box<dyn DecodedHandle<Descriptor = M>>),
FormatChanged(Box<dyn DecoderFormatNegotiator<'a, M> + 'a>),
}
Expand description
Events that can be retrieved using the next_event
method of a decoder.
Variants§
FrameReady(Box<dyn DecodedHandle<Descriptor = M>>)
The next frame has been decoded.
FormatChanged(Box<dyn DecoderFormatNegotiator<'a, M> + 'a>)
The format of the stream has changed and action is required.
Auto Trait Implementations§
impl<'a, M> !RefUnwindSafe for DecoderEvent<'a, M>
impl<'a, M> !Send for DecoderEvent<'a, M>
impl<'a, M> !Sync for DecoderEvent<'a, M>
impl<'a, M> Unpin for DecoderEvent<'a, M>
impl<'a, M> !UnwindSafe for DecoderEvent<'a, M>
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