Enum mpc_manager::service::notification::Notification
source · 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
Fields
Send to all the clients in a group.
Session
Fields
Sends to all clients in a session.
Relay
Fields
Relay messages to specific clients.
Used for relaying peer to peer messages.
Trait Implementations§
Auto Trait Implementations§
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