pub enum CodecSpecificParameters {
Audio(AudioCodecParameters),
Video(VideoCodecParameters),
}Variants§
Audio(AudioCodecParameters)
Video(VideoCodecParameters)
Implementations§
Source§impl CodecSpecificParameters
impl CodecSpecificParameters
pub fn media_type(&self) -> MediaType
Trait Implementations§
Source§impl Clone for CodecSpecificParameters
impl Clone for CodecSpecificParameters
Source§fn clone(&self) -> CodecSpecificParameters
fn clone(&self) -> CodecSpecificParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecSpecificParameters
impl Debug for CodecSpecificParameters
Source§impl From<AudioCodecParameters> for CodecSpecificParameters
impl From<AudioCodecParameters> for CodecSpecificParameters
Source§fn from(params: AudioCodecParameters) -> Self
fn from(params: AudioCodecParameters) -> Self
Converts to this type from the input type.
Source§impl From<VideoCodecParameters> for CodecSpecificParameters
impl From<VideoCodecParameters> for CodecSpecificParameters
Source§fn from(params: VideoCodecParameters) -> Self
fn from(params: VideoCodecParameters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodecSpecificParameters
impl RefUnwindSafe for CodecSpecificParameters
impl Send for CodecSpecificParameters
impl Sync for CodecSpecificParameters
impl Unpin for CodecSpecificParameters
impl UnwindSafe for CodecSpecificParameters
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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