pub struct SfuEngine {
pub config: SfuConfig,
pub sink: Arc<dyn EventSink + Send + Sync>,
/* private fields */
}Fields§
§config: SfuConfig§sink: Arc<dyn EventSink + Send + Sync>Implementations§
Source§impl SfuEngine
impl SfuEngine
pub fn new(config: SfuConfig) -> Arc<Self>
pub fn with_sink( config: SfuConfig, sink: Arc<dyn EventSink + Send + Sync>, ) -> Self
pub async fn create_room( &self, options: RoomOptions, ) -> Result<CreateRoomResponse>
pub async fn delete_room(&self, room_id: RoomId) -> Result<()>
pub async fn list_rooms(&self) -> ListRoomsResponse
pub async fn join_room(&self, req: JoinRequest) -> Result<JoinResponse>
pub async fn trickle_ice(&self, ice: TrickledIce) -> Result<()>
pub async fn leave(&self, req: LeaveRequest) -> Result<()>
pub async fn remove_idle(&self, now_ms: u64) -> Result<()>
pub fn inner(&self) -> Sfu
Auto Trait Implementations§
impl !Freeze for SfuEngine
impl !RefUnwindSafe for SfuEngine
impl Send for SfuEngine
impl Sync for SfuEngine
impl Unpin for SfuEngine
impl !UnwindSafe for SfuEngine
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