pub enum Notification {
Noop,
Group {
group_id: Uuid,
filter: Option<Vec<usize>>,
response: Response,
},
Session {
group_id: Uuid,
session_id: Uuid,
filter: Option<Vec<usize>>,
response: Response,
},
Relay {
messages: Vec<(usize, Response)>,
},
}
Expand description
Notification sent by the server to multiple connected clients.
Variants§
Noop
Indicates that the response should be ignored and no notification messages should be sent.
This is used when testing a threshold for sending notifications; before a threshold has been reached we want to return a response but not actually send any notifications.
Group
Sends the response to all clients in the group.
Fields
Session
Sends the response to all clients in the session.
Fields
Relay
Relay messages to specific clients.
Used for relaying peer to peer messages.
Trait Implementations§
Source§impl Debug for Notification
impl Debug for Notification
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