pub enum Notification {
Group {
group_id: GroupId,
filter: Vec<ClientId>,
method: String,
message: Value,
},
Session {
group_id: GroupId,
session_id: SessionId,
filter: Vec<ClientId>,
method: String,
message: Value,
},
Relay {
method: String,
messages: Vec<(ClientId, Value)>,
},
}Expand description
Notification sent by the server to multiple connected clients.
Variants§
Group
Send to all the clients in a group.
Fields
Session
Sends to all clients in a session.
Fields
Relay
Relay messages to specific clients.
Used for relaying peer to peer messages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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