pub struct EncoderContext {
pub parameters: Option<CodecParameters>,
pub options: Option<Variant>,
/* private fields */
}Fields§
§parameters: Option<CodecParameters>§options: Option<Variant>Implementations§
Source§impl EncoderContext
impl EncoderContext
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_frame(&mut self, frame: &Frame<'_>) -> Result<()>
pub fn receive_packet(&mut self) -> Result<Packet<'_>>
Auto Trait Implementations§
impl Freeze for EncoderContext
impl !RefUnwindSafe for EncoderContext
impl Send for EncoderContext
impl Sync for EncoderContext
impl Unpin for EncoderContext
impl !UnwindSafe for EncoderContext
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