pub struct LocalVideoTrack { /* private fields */ }Implementations§
Source§impl LocalVideoTrack
impl LocalVideoTrack
pub fn new( name: String, rtc_track: RtcVideoTrack, source: RtcVideoSource, ) -> Self
pub fn create_video_track(name: &str, source: RtcVideoSource) -> LocalVideoTrack
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 mute(&self)
pub fn unmute(&self)
pub fn rtc_track(&self) -> RtcVideoTrack
pub fn is_remote(&self) -> bool
pub fn rtc_source(&self) -> RtcVideoSource
pub async fn get_stats(&self) -> RoomResult<Vec<RtcStats>>
Trait Implementations§
Source§impl Clone for LocalVideoTrack
impl Clone for LocalVideoTrack
Source§fn clone(&self) -> LocalVideoTrack
fn clone(&self) -> LocalVideoTrack
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 moreAuto Trait Implementations§
impl Freeze for LocalVideoTrack
impl !RefUnwindSafe for LocalVideoTrack
impl Send for LocalVideoTrack
impl Sync for LocalVideoTrack
impl Unpin for LocalVideoTrack
impl UnsafeUnpin for LocalVideoTrack
impl !UnwindSafe for LocalVideoTrack
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