pub struct DecoderContext<T: CodecConfiguration> {
pub configurations: T,
/* private fields */
}Fields§
§configurations: TImplementations§
Source§impl<T: CodecConfiguration> DecoderContext<T>
impl<T: CodecConfiguration> DecoderContext<T>
pub fn from_codec_id( id: CodecID, parameters: &T::Parameters, options: Option<&Variant>, ) -> Result<Self>
pub fn from_codec_name( name: &str, parameters: &T::Parameters, options: Option<&Variant>, ) -> Result<Self>
pub fn codec_id(&self) -> CodecID
pub fn codec_name(&self) -> &'static str
pub fn configure( &mut self, parameters: Option<&T::Parameters>, options: Option<&Variant>, ) -> Result<()>
pub fn set_option(&mut self, key: &str, value: &Variant) -> Result<()>
pub fn send_packet(&mut self, packet: &Packet<'_>) -> Result<()>
pub fn receive_frame(&mut self) -> Result<Frame<'static>>
pub fn receive_frame_borrowed(&mut self) -> Result<Frame<'_>>
Auto Trait Implementations§
impl<T> Freeze for DecoderContext<T>where
T: Freeze,
impl<T> !RefUnwindSafe for DecoderContext<T>
impl<T> Send for DecoderContext<T>
impl<T> Sync for DecoderContext<T>
impl<T> Unpin for DecoderContext<T>where
T: Unpin,
impl<T> !UnwindSafe for DecoderContext<T>
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