pub struct WsIoServerNamespace { /* private fields */ }Implementations§
Source§impl WsIoServerNamespace
impl WsIoServerNamespace
pub fn connection_count(&self) -> usize
pub async fn emit<D: Serialize>( self: &Arc<Self>, event: impl AsRef<str>, data: Option<&D>, ) -> Result<()>
pub fn except( self: &Arc<Self>, room_names: impl IntoIterator<Item = impl AsRef<str>>, ) -> WsIoServerNamespaceBroadcastOperator
pub fn path(&self) -> &str
pub fn server(&self) -> WsIoServer
pub async fn shutdown(self: &Arc<Self>)
pub fn to( self: &Arc<Self>, room_names: impl IntoIterator<Item = impl AsRef<str>>, ) -> WsIoServerNamespaceBroadcastOperator
Auto Trait Implementations§
impl !Freeze for WsIoServerNamespace
impl !RefUnwindSafe for WsIoServerNamespace
impl Send for WsIoServerNamespace
impl Sync for WsIoServerNamespace
impl Unpin for WsIoServerNamespace
impl !UnwindSafe for WsIoServerNamespace
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