Struct live_kit_client2::prod::Room

source ·
pub struct Room { /* private fields */ }

Implementations§

source§

impl Room

source

pub fn new() -> Arc<Self>

source

pub fn status(&self) -> Receiver<ConnectionState>

source

pub fn connect( self: &Arc<Self>, url: &str, token: &str ) -> impl Future<Output = Result<()>>

source

pub fn display_sources( self: &Arc<Self> ) -> impl Future<Output = Result<Vec<MacOSDisplay>>>

source

pub fn publish_video_track( self: &Arc<Self>, track: LocalVideoTrack ) -> impl Future<Output = Result<LocalTrackPublication>>

source

pub fn publish_audio_track( self: &Arc<Self>, track: LocalAudioTrack ) -> impl Future<Output = Result<LocalTrackPublication>>

source

pub fn unpublish_track(&self, publication: LocalTrackPublication)

source

pub fn remote_video_tracks( &self, participant_id: &str ) -> Vec<Arc<RemoteVideoTrack>>

source

pub fn remote_audio_tracks( &self, participant_id: &str ) -> Vec<Arc<RemoteAudioTrack>>

source

pub fn remote_audio_track_publications( &self, participant_id: &str ) -> Vec<Arc<RemoteTrackPublication>>

source

pub fn remote_audio_track_updates( &self ) -> UnboundedReceiver<RemoteAudioTrackUpdate>

source

pub fn remote_video_track_updates( &self ) -> UnboundedReceiver<RemoteVideoTrackUpdate>

source

pub fn set_display_sources(&self, _: Vec<MacOSDisplay>)

Trait Implementations§

source§

impl Drop for Room

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Room

§

impl Send for Room

§

impl Sync for Room

§

impl Unpin for Room

§

impl !UnwindSafe for Room

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.