pub struct RecvConstraints { /* private fields */ }Expand description
Constraints to the media received from remote. Used to disable or enable media receiving.
Implementations§
Source§impl RecvConstraints
impl RecvConstraints
Sourcepub fn set_enabled(
&self,
enabled: bool,
kind: MediaKind,
source_kind: Option<MediaSourceKind>,
)
pub fn set_enabled( &self, enabled: bool, kind: MediaKind, source_kind: Option<MediaSourceKind>, )
Enables or disables audio or video receiving.
Sourcepub fn is_audio_enabled(&self) -> bool
pub fn is_audio_enabled(&self) -> bool
Indicates whether audio receiving is enabled.
Sourcepub fn is_video_device_enabled(&self) -> bool
pub fn is_video_device_enabled(&self) -> bool
Indicates whether device video receiving is enabled.
Sourcepub fn is_video_display_enabled(&self) -> bool
pub fn is_video_display_enabled(&self) -> bool
Indicates whether display video receiving is enabled.
Sourcepub fn on_audio_enabled_change(&self) -> LocalBoxStream<'static, bool>
pub fn on_audio_enabled_change(&self) -> LocalBoxStream<'static, bool>
Returns LocalBoxStream into which all is_audio_enabled updates
will be sent.
Sourcepub fn on_video_device_enabled_change(&self) -> LocalBoxStream<'static, bool>
pub fn on_video_device_enabled_change(&self) -> LocalBoxStream<'static, bool>
Returns LocalBoxStream into which all is_video_device_enabled
updates will be sent.
Sourcepub fn on_video_display_enabled_change(&self) -> LocalBoxStream<'static, bool>
pub fn on_video_display_enabled_change(&self) -> LocalBoxStream<'static, bool>
Returns LocalBoxStream into which all is_video_display_enabled
updates will be sent.
Trait Implementations§
Source§impl Clone for RecvConstraints
impl Clone for RecvConstraints
Source§impl Debug for RecvConstraints
impl Debug for RecvConstraints
Auto Trait Implementations§
impl !Freeze for RecvConstraints
impl !RefUnwindSafe for RecvConstraints
impl !Send for RecvConstraints
impl !Sync for RecvConstraints
impl Unpin for RecvConstraints
impl !UnwindSafe for RecvConstraints
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