Struct sherwood::Meta [-] [+] [src]

pub struct Meta {
    // some fields omitted
}

Meta information about a document key, seq_num, offset and meta itself

Methods

impl Meta

fn into_doc(self) -> Doc

Convert into doc for update

Trait Implementations

impl DocKey for Meta

fn get_raw_key<'a>(&'a self) -> Option<&'a [u8]>

fn get_key<T: FromBytes>(&self) -> Option<T>

impl DocMeta for Meta

fn get_raw_meta<'a>(&'a self) -> Option<&'a [u8]>

fn seq_num(&self) -> u64

Sequence number assigned to the doc

fn is_deleted(&self) -> bool

Is doc deleted?

fn offset(&self) -> u64

Offset to the doc on disk

fn get_meta<T: FromBytes>(&self) -> Option<T>