pub struct SendEncodingParameters(/* private fields */);
Expand description
Wrapper around RTCRtpEncodingParameters providing handy methods for its direction changes.
Implementations§
Source§impl SendEncodingParameters
impl SendEncodingParameters
Sourcepub fn new(rid: String, active: bool) -> Self
pub fn new(rid: String, active: bool) -> Self
Creates new SendEncodingParameters
.
Sourcepub fn handle(&self) -> Dart_Handle
pub fn handle(&self) -> Dart_Handle
Returns the underlying Dart_Handle
of these
SendEncodingParameters
.
Sourcepub fn set_active(&self, active: bool)
pub fn set_active(&self, active: bool)
Sets activeness of these SendEncodingParameters
.
Sourcepub fn active(&self) -> bool
pub fn active(&self) -> bool
Returns activeness of these SendEncodingParameters
.
Sourcepub fn set_max_bitrate(&self, max_bitrate: u32)
pub fn set_max_bitrate(&self, max_bitrate: u32)
Sets maxBitrate of these SendEncodingParameters
.
Sourcepub fn max_bitrate(&self) -> Option<u32>
pub fn max_bitrate(&self) -> Option<u32>
Returns maxBitrate of these SendEncodingParameters
.
Sourcepub fn set_scale_resolution_down_by(&self, scale_resolution_down_by: f64)
pub fn set_scale_resolution_down_by(&self, scale_resolution_down_by: f64)
Sets scaleResolutionDownBy of these SendEncodingParameters
.
Sourcepub fn scale_resolution_down_by(&self) -> f64
pub fn scale_resolution_down_by(&self) -> f64
Returns scaleResolutionDownBy of these SendEncodingParameters
.
Sourcepub fn set_scalability_mode(&self, scalability_mode: String)
pub fn set_scalability_mode(&self, scalability_mode: String)
Sets scalabilityMode of these SendEncodingParameters
.
Sourcepub fn scalability_mode(&self) -> Option<String>
pub fn scalability_mode(&self) -> Option<String>
Returns scalabilityMode of these SendEncodingParameters
.
Trait Implementations§
Source§impl Clone for SendEncodingParameters
impl Clone for SendEncodingParameters
Source§fn clone(&self) -> SendEncodingParameters
fn clone(&self) -> SendEncodingParameters
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 SendEncodingParameters
impl Debug for SendEncodingParameters
Source§impl From<DartHandle> for SendEncodingParameters
impl From<DartHandle> for SendEncodingParameters
Source§fn from(value: DartHandle) -> Self
fn from(value: DartHandle) -> Self
Converts to this type from the input type.
Source§impl From<EncodingParameters> for SendEncodingParameters
impl From<EncodingParameters> for SendEncodingParameters
Source§fn from(from: EncodingParameters) -> Self
fn from(from: EncodingParameters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendEncodingParameters
impl RefUnwindSafe for SendEncodingParameters
impl !Send for SendEncodingParameters
impl !Sync for SendEncodingParameters
impl Unpin for SendEncodingParameters
impl UnwindSafe for SendEncodingParameters
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