pub struct RoomSessionNamespace { /* private fields */ }Implementations§
Source§impl RoomSessionNamespace
impl RoomSessionNamespace
pub fn on_error( &self, handler: impl Fn(&str, &str) + Send + Sync + 'static, ) -> Subscription
pub fn on_kicked( &self, handler: impl Fn() + Send + Sync + 'static, ) -> Subscription
pub fn on_reconnect( &self, handler: impl Fn(&Value) + Send + Sync + 'static, ) -> Subscription
pub fn on_connection_state_change( &self, handler: impl Fn(&str) + Send + Sync + 'static, ) -> Subscription
pub fn connection_state(&self) -> String
pub fn user_id(&self) -> Option<String>
pub fn connection_id(&self) -> Option<String>
Auto Trait Implementations§
impl Freeze for RoomSessionNamespace
impl !RefUnwindSafe for RoomSessionNamespace
impl Send for RoomSessionNamespace
impl Sync for RoomSessionNamespace
impl Unpin for RoomSessionNamespace
impl UnsafeUnpin for RoomSessionNamespace
impl !UnwindSafe for RoomSessionNamespace
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