Ready to implement sync client manager
This commit is contained in:
17
src/broadcast_messages.rs
Normal file
17
src/broadcast_messages.rs
Normal file
@ -0,0 +1,17 @@
|
||||
use crate::sync_client::SyncClientID;
|
||||
use crate::user::{APIClientID, UserID};
|
||||
|
||||
/// Broadcast messages
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum BroadcastMessage {
|
||||
/// Request to close the session of a specific client
|
||||
CloseClientSession(APIClientID),
|
||||
/// Close all the sessions of a given user
|
||||
CloseAllUserSessions(UserID),
|
||||
/// Stop sync client for a given user
|
||||
StopSyncClientForUser(UserID),
|
||||
/// Start sync client for a given user (if not already running)
|
||||
StartSyncClientForUser(UserID),
|
||||
/// Stop a client with a given client ID
|
||||
StopSyncClient(SyncClientID),
|
||||
}
|
Reference in New Issue
Block a user