pub struct RoomSignalsNamespace { /* private fields */ }Implementations§
Source§impl RoomSignalsNamespace
impl RoomSignalsNamespace
pub async fn send( &self, event: &str, payload: Option<Value>, options: Option<Value>, ) -> Result<(), Error>
pub async fn send_to( &self, member_id: &str, event: &str, payload: Option<Value>, ) -> Result<(), Error>
pub fn on( &self, event: &str, handler: impl Fn(&Value, &Value) + Send + Sync + 'static, ) -> Subscription
pub fn on_any( &self, handler: impl Fn(&str, &Value, &Value) + Send + Sync + 'static, ) -> Subscription
Auto Trait Implementations§
impl Freeze for RoomSignalsNamespace
impl !RefUnwindSafe for RoomSignalsNamespace
impl Send for RoomSignalsNamespace
impl Sync for RoomSignalsNamespace
impl Unpin for RoomSignalsNamespace
impl UnsafeUnpin for RoomSignalsNamespace
impl !UnwindSafe for RoomSignalsNamespace
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