pub struct DecoderContext<T: CodecSpec> {
pub config: T,
/* private fields */
}Fields§
§config: TImplementations§
Source§impl<T: CodecSpec> DecoderContext<T>
impl<T: CodecSpec> DecoderContext<T>
pub fn from_codec_id( id: CodecID, params: &CodecParameters, options: Option<&Variant>, ) -> Result<Self>
pub fn from_codec_name( name: &str, params: &CodecParameters, options: Option<&Variant>, ) -> Result<Self>
pub fn with_frame_creator( self, creator: Box<dyn FrameCreator<T::FrameDescriptor>>, ) -> Self
pub fn codec_id(&self) -> CodecID
pub fn codec_name(&self) -> &'static str
pub fn configure( &mut self, params: Option<&CodecParameters>, 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<SharedFrame<Frame<'static, T::FrameDescriptor>>>
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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