20 lines
602 B
Rust
20 lines
602 B
Rust
/// Wire protocol op codes
|
|
pub const OP_REPLY: i32 = 1;
|
|
pub const OP_UPDATE: i32 = 2001;
|
|
pub const OP_INSERT: i32 = 2002;
|
|
pub const OP_QUERY: i32 = 2004;
|
|
pub const OP_GET_MORE: i32 = 2005;
|
|
pub const OP_DELETE: i32 = 2006;
|
|
pub const OP_KILL_CURSORS: i32 = 2007;
|
|
pub const OP_COMPRESSED: i32 = 2012;
|
|
pub const OP_MSG: i32 = 2013;
|
|
|
|
/// OP_MSG section types
|
|
pub const SECTION_BODY: u8 = 0;
|
|
pub const SECTION_DOCUMENT_SEQUENCE: u8 = 1;
|
|
|
|
/// OP_MSG flag bits
|
|
pub const MSG_FLAG_CHECKSUM_PRESENT: u32 = 1 << 0;
|
|
pub const MSG_FLAG_MORE_TO_COME: u32 = 1 << 1;
|
|
pub const MSG_FLAG_EXHAUST_ALLOWED: u32 = 1 << 16;
|