pub struct Broadcasting;Expand description
Static facade — entry point for all broadcasting operations.
Implementations§
Source§impl Broadcasting
impl Broadcasting
Sourcepub fn channel(name: impl Into<String>) -> BroadcastChannel
pub fn channel(name: impl Into<String>) -> BroadcastChannel
Open a public broadcast channel.
Sourcepub fn private_channel(name: impl Into<String>) -> BroadcastChannel
pub fn private_channel(name: impl Into<String>) -> BroadcastChannel
Open a private channel (auth required on client side).
Sourcepub fn presence_channel(name: impl Into<String>) -> PresenceChannel
pub fn presence_channel(name: impl Into<String>) -> PresenceChannel
Open a presence channel (tracks who is subscribed).
Auto Trait Implementations§
impl Freeze for Broadcasting
impl RefUnwindSafe for Broadcasting
impl Send for Broadcasting
impl Sync for Broadcasting
impl Unpin for Broadcasting
impl UnsafeUnpin for Broadcasting
impl UnwindSafe for Broadcasting
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