pub struct Jason(/* private fields */);Expand description
General library interface.
Responsible for managing shared transports, local media and room initialization.
Implementations§
Source§impl Jason
impl Jason
Sourcepub fn new(rpc: Option<Rc<WebSocketRpcClient>>) -> Self
pub fn new(rpc: Option<Rc<WebSocketRpcClient>>) -> Self
Instantiates a new Jason interface to interact with this library.
If a WebSocketRpcClient is provided, then Jason will reuse it
for all the Rooms created in this Jason.
If WebSocketRpcClient is not provided, then a new separate
WebSocketRpcClient will be created for each Room.
Sourcepub fn init_room(&self) -> RoomHandle
pub fn init_room(&self) -> RoomHandle
Creates a new Room and returns its RoomHandle.
Sourcepub fn media_manager(&self) -> MediaManagerHandle
pub fn media_manager(&self) -> MediaManagerHandle
Returns a MediaManagerHandle.
Sourcepub fn close_room(&self, room_to_delete: &RoomHandle)
pub fn close_room(&self, room_to_delete: &RoomHandle)
Closes the provided RoomHandle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Jason
impl !RefUnwindSafe for Jason
impl !Send for Jason
impl !Sync for Jason
impl Unpin for Jason
impl !UnwindSafe for Jason
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