Struct mongors::message::OpMsg [−][src]
pub struct OpMsg { pub header: Header, pub flag_bits: OpMsgFlags, pub sections: Vec<Section>, pub checksum: u32, }
Fields
header: Header
flag_bits: OpMsgFlags
sections: Vec<Section>
checksum: u32
Methods
impl OpMsg
[src]
impl OpMsg
pub fn builder() -> OpMsgBuilder
[src]
pub fn builder() -> OpMsgBuilder
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn write<W: Write>(&self, buffer: &mut W) -> Result<()>
[src]
pub fn write<W: Write>(&self, buffer: &mut W) -> Result<()>
pub fn read<R: Read>(buffer: &mut R) -> Result<OpMsg>
[src]
pub fn read<R: Read>(buffer: &mut R) -> Result<OpMsg>
pub fn get_document(&self) -> Result<Document>
[src]
pub fn get_document(&self) -> Result<Document>
Trait Implementations
impl Debug for OpMsg
[src]
impl Debug for OpMsg
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for OpMsg
[src]
impl Clone for OpMsg