Struct livekit_api::services::room::RoomClient
source · pub struct RoomClient { /* private fields */ }Implementations§
source§impl RoomClient
impl RoomClient
pub fn with_api_key(host: &str, api_key: &str, api_secret: &str) -> Self
pub fn new(host: &str) -> ServiceResult<Self>
pub async fn create_room( &self, name: &str, options: CreateRoomOptions ) -> ServiceResult<Room>
pub async fn list_rooms(&self, names: Vec<String>) -> ServiceResult<Vec<Room>>
pub async fn delete_room(&self, room: &str) -> ServiceResult<()>
pub async fn update_room_metadata( &self, room: &str, metadata: &str ) -> ServiceResult<Room>
pub async fn list_participants( &self, room: &str ) -> ServiceResult<Vec<ParticipantInfo>>
pub async fn get_participant( &self, room: &str, identity: &str ) -> ServiceResult<ParticipantInfo>
pub async fn remove_participant( &self, room: &str, identity: &str ) -> ServiceResult<()>
pub async fn mute_published_track( &self, room: &str, identity: &str, track_sid: &str, muted: bool ) -> ServiceResult<TrackInfo>
pub async fn update_participant( &self, room: &str, identity: &str, options: UpdateParticipantOptions ) -> ServiceResult<ParticipantInfo>
pub async fn update_subscriptions( &self, room: &str, identity: &str, track_sids: Vec<String>, subscribe: bool ) -> ServiceResult<()>
pub async fn send_data( &self, room: &str, data: Vec<u8>, options: SendDataOptions ) -> ServiceResult<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RoomClient
impl Send for RoomClient
impl Sync for RoomClient
impl Unpin for RoomClient
impl !UnwindSafe for RoomClient
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