pub struct CodecCapability(/* private fields */);
Expand description
Dart side representation of an RTCRtpCodecCapability.
Implementations§
Source§impl CodecCapability
impl CodecCapability
Sourcepub async fn get_sender_codec_capabilities(
kind: MediaKind,
) -> Result<Vec<Self>, Error>
pub async fn get_sender_codec_capabilities( kind: MediaKind, ) -> Result<Vec<Self>, Error>
Returns available RTCRtpSender’s CodecCapability
s.
§Errors
With Error::FailedToGetCapabilities
if fails to retrieve
capabilities.
Sourcepub async fn get_receiver_codec_capabilities(
kind: MediaKind,
) -> Result<Vec<Self>, Error>
pub async fn get_receiver_codec_capabilities( kind: MediaKind, ) -> Result<Vec<Self>, Error>
Returns available RTCRtpReceiver’s CodecCapability
s.
§Errors
With Error::FailedToGetCapabilities
if fails to retrieve
CodecCapability
s.
Sourcepub fn mime_type(&self) -> String
pub fn mime_type(&self) -> String
Returns mimeType of this CodecCapability
.
Sourcepub fn clock_rate(&self) -> u32
pub fn clock_rate(&self) -> u32
Returns clockRate of this CodecCapability
.
Sourcepub fn parameters(&self) -> HashMap<String, String>
pub fn parameters(&self) -> HashMap<String, String>
Returns sdpFmtpLine of this CodecCapability
.
Sourcepub fn handle(&self) -> Dart_Handle
pub fn handle(&self) -> Dart_Handle
Returns the underlying Dart_Handle
of this CodecCapability
.
Trait Implementations§
Source§impl Clone for CodecCapability
impl Clone for CodecCapability
Source§fn clone(&self) -> CodecCapability
fn clone(&self) -> CodecCapability
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 CodecCapability
impl Debug for CodecCapability
Source§impl From<DartHandle> for CodecCapability
impl From<DartHandle> for CodecCapability
Source§fn from(value: DartHandle) -> Self
fn from(value: DartHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodecCapability
impl RefUnwindSafe for CodecCapability
impl !Send for CodecCapability
impl !Sync for CodecCapability
impl Unpin for CodecCapability
impl UnwindSafe for CodecCapability
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