pub enum RemoteTrack {
Audio(RemoteAudioTrack),
Video(RemoteVideoTrack),
}Variants§
Audio(RemoteAudioTrack)
Video(RemoteVideoTrack)
Implementations§
Source§impl RemoteTrack
impl RemoteTrack
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) -> MediaStreamTrack
pub async fn get_stats(&self) -> RoomResult<Vec<RtcStats>>
Trait Implementations§
Source§impl Clone for RemoteTrack
impl Clone for RemoteTrack
Source§fn clone(&self) -> RemoteTrack
fn clone(&self) -> RemoteTrack
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 RemoteTrack
impl Debug for RemoteTrack
Source§impl From<RemoteTrack> for Track
impl From<RemoteTrack> for Track
Source§fn from(track: RemoteTrack) -> Self
fn from(track: RemoteTrack) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RemoteTrack
impl !RefUnwindSafe for RemoteTrack
impl Send for RemoteTrack
impl Sync for RemoteTrack
impl Unpin for RemoteTrack
impl UnsafeUnpin for RemoteTrack
impl !UnwindSafe for RemoteTrack
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