pub enum Command {
Show 23 variants
RoomCreate,
RoomDelete(u64),
RoomList,
RoomInfo(u64),
RoomLabel(u64, String),
RoomFind(String),
Set {
room_id: u64,
container: String,
key: String,
value: Value,
},
Del {
room_id: u64,
container: String,
key: String,
},
Get {
room_id: u64,
container: String,
key: String,
},
ServerSet {
room_id: u64,
key: String,
value: Value,
},
ServerDel {
room_id: u64,
key: String,
},
ServerGet {
room_id: u64,
key: String,
},
Version(u64),
SetJwtKey(String),
TxBegin(u64),
TxEnd(u64),
TxAbort(u64),
TokenGen {
room_id: u64,
containers: Vec<String>,
},
Save {
room_id: u64,
},
Load {
room_id: u64,
},
PersistSet {
room_id: u64,
container: String,
key: String,
},
PersistUnset {
room_id: u64,
container: String,
key: String,
},
PersistGet {
room_id: u64,
container: String,
key: String,
},
}Expand description
Command enum representing the app-level commands.
Variants§
RoomCreate
RoomDelete(u64)
RoomList
RoomInfo(u64)
RoomLabel(u64, String)
RoomFind(String)
Set
Del
Get
ServerSet
Server-only operations that operate on the reserved server_only container.
ServerDel
ServerGet
Version(u64)
SetJwtKey(String)
TxBegin(u64)
TxEnd(u64)
TxAbort(u64)
TokenGen
Save
Load
PersistSet
PersistUnset
PersistGet
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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