pub struct RoomMembersNamespace { /* private fields */ }Implementations§
Source§impl RoomMembersNamespace
impl RoomMembersNamespace
pub fn list(&self) -> Value
pub fn on_sync( &self, handler: impl Fn(&Value) + Send + Sync + 'static, ) -> Subscription
pub fn on_join( &self, handler: impl Fn(&Value) + Send + Sync + 'static, ) -> Subscription
pub fn on_leave( &self, handler: impl Fn(&Value, &str) + Send + Sync + 'static, ) -> Subscription
pub async fn set_state(&self, state: Value) -> Result<(), Error>
pub async fn clear_state(&self) -> Result<(), Error>
pub fn on_state_change( &self, handler: impl Fn(&Value, &Value) + Send + Sync + 'static, ) -> Subscription
Auto Trait Implementations§
impl Freeze for RoomMembersNamespace
impl !RefUnwindSafe for RoomMembersNamespace
impl Send for RoomMembersNamespace
impl Sync for RoomMembersNamespace
impl Unpin for RoomMembersNamespace
impl UnsafeUnpin for RoomMembersNamespace
impl !UnwindSafe for RoomMembersNamespace
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