#[repr(u8)]pub enum OpCode {
Show 53 variants
Auth = 1,
AuthOk = 2,
AuthFail = 3,
SelectDb = 16,
CreateDb = 17,
DbOk = 18,
ListDb = 19,
ListDbResult = 20,
Remember = 32,
RememberOk = 33,
RememberBatch = 34,
Recall = 48,
RecallResult = 49,
RecallEnd = 50,
Relate = 64,
RelateOk = 65,
Edges = 66,
EdgesResult = 67,
Forget = 80,
ForgetOk = 81,
SessionStart = 96,
SessionEnd = 97,
SessionOk = 98,
Think = 112,
ThinkResult = 113,
Subscribe = 128,
Event = 129,
Unsubscribe = 130,
Conflicts = 144,
Resolve = 145,
ConflictResult = 146,
Personality = 160,
Stats = 161,
InfoResult = 162,
ClusterHello = 192,
ClusterHelloOk = 193,
OplogPull = 194,
OplogPullResult = 195,
OplogPush = 196,
OplogPushOk = 197,
Heartbeat = 198,
HeartbeatAck = 199,
RequestVote = 200,
VoteGranted = 201,
VoteDenied = 202,
ClusterStatus = 203,
ClusterStatusResult = 204,
ReadOnlyError = 205,
ClusterDatabaseList = 206,
ClusterDatabaseListResult = 207,
Error = 240,
Ping = 241,
Pong = 242,
}Expand description
Wire protocol opcodes for YantrikDB.
Each opcode is a single byte identifying the command type. Direction conventions: C→S = Client to Server S→C = Server to Client Both = Either direction
Variants§
Auth = 1
AuthOk = 2
AuthFail = 3
SelectDb = 16
CreateDb = 17
DbOk = 18
ListDb = 19
ListDbResult = 20
Remember = 32
RememberOk = 33
RememberBatch = 34
Recall = 48
RecallResult = 49
RecallEnd = 50
Relate = 64
RelateOk = 65
Edges = 66
EdgesResult = 67
Forget = 80
ForgetOk = 81
SessionStart = 96
SessionEnd = 97
SessionOk = 98
Think = 112
ThinkResult = 113
Subscribe = 128
Event = 129
Unsubscribe = 130
Conflicts = 144
Resolve = 145
ConflictResult = 146
Personality = 160
Stats = 161
InfoResult = 162
ClusterHello = 192
ClusterHelloOk = 193
OplogPull = 194
OplogPullResult = 195
OplogPush = 196
OplogPushOk = 197
Heartbeat = 198
HeartbeatAck = 199
RequestVote = 200
VoteGranted = 201
VoteDenied = 202
ClusterStatus = 203
ClusterStatusResult = 204
ReadOnlyError = 205
ClusterDatabaseList = 206
ClusterDatabaseListResult = 207
Error = 240
Ping = 241
Pong = 242
Implementations§
Trait Implementations§
impl Copy for OpCode
impl Eq for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl Freeze for OpCode
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnsafeUnpin for OpCode
impl UnwindSafe for OpCode
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