pub struct EncoderContext<T: CodecSpec> {
pub config: T,
/* private fields */
}Fields§
§config: TImplementations§
Source§impl<T: CodecSpec> EncoderContext<T>
impl<T: CodecSpec> EncoderContext<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 configure( &mut self, params: Option<&CodecParameters>, options: Option<&Variant>, ) -> Result<()>
pub fn set_option(&mut self, key: &str, value: &Variant) -> Result<()>
pub fn send_frame( &mut self, frame: SharedFrame<Frame<'static, T::FrameDescriptor>>, ) -> Result<()>
pub fn receive_packet(&mut self) -> Result<Packet<'static>>
Auto Trait Implementations§
impl<T> Freeze for EncoderContext<T>where
T: Freeze,
impl<T> !RefUnwindSafe for EncoderContext<T>
impl<T> Send for EncoderContext<T>
impl<T> Sync for EncoderContext<T>
impl<T> Unpin for EncoderContext<T>where
T: Unpin,
impl<T> !UnwindSafe for EncoderContext<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