pub enum VideoTrack {
Local(LocalVideoTrack),
Remote(RemoteVideoTrack),
}Variants§
Local(LocalVideoTrack)
Remote(RemoteVideoTrack)
Implementations§
Source§impl VideoTrack
impl VideoTrack
pub fn sid(&self) -> TrackSid
pub fn name(&self) -> String
pub fn kind(&self) -> TrackKind
pub fn source(&self) -> TrackSource
pub fn stream_state(&self) -> StreamState
pub fn is_enabled(&self) -> bool
pub fn enable(&self)
pub fn disable(&self)
pub fn is_muted(&self) -> bool
pub fn is_remote(&self) -> bool
pub fn on_muted(&self, on_mute: impl Fn(Track) + Send + 'static)
pub fn on_unmuted(&self, on_unmute: impl Fn(Track) + Send + 'static)
pub fn rtc_track(&self) -> RtcVideoTrack
Trait Implementations§
Source§impl Clone for VideoTrack
impl Clone for VideoTrack
Source§fn clone(&self) -> VideoTrack
fn clone(&self) -> VideoTrack
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 VideoTrack
impl Debug for VideoTrack
Source§impl From<VideoTrack> for Track
impl From<VideoTrack> for Track
Source§fn from(track: VideoTrack) -> Self
fn from(track: VideoTrack) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VideoTrack
impl !RefUnwindSafe for VideoTrack
impl Send for VideoTrack
impl Sync for VideoTrack
impl Unpin for VideoTrack
impl UnsafeUnpin for VideoTrack
impl !UnwindSafe for VideoTrack
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