pub struct DecoderContext {
pub parameters: Option<CodecParameters>,
pub options: Option<Variant>,
/* private fields */
}Fields§
§parameters: Option<CodecParameters>§options: Option<Variant>Implementations§
Source§impl DecoderContext
impl DecoderContext
pub fn from_codec_id( codec_id: CodecID, parameters: Option<CodecParameters>, options: Option<Variant>, ) -> Result<Self>
pub fn from_codec_name( name: &str, parameters: Option<CodecParameters>, options: Option<Variant>, ) -> Result<Self>
pub fn send_packet(&mut self, packet: &Packet<'_>) -> Result<()>
pub fn receive_frame(&mut self) -> Result<Frame<'_>>
Auto Trait Implementations§
impl Freeze for DecoderContext
impl !RefUnwindSafe for DecoderContext
impl Send for DecoderContext
impl Sync for DecoderContext
impl Unpin for DecoderContext
impl !UnwindSafe for DecoderContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more