Trait commitlog::message::MessageSet [] [src]

pub trait MessageSet {
    fn bytes(&self) -> &[u8];

    fn iter(&self) -> MessageIter { ... }
    fn len(&self) -> usize { ... }
    fn is_empty(&self) -> bool { ... }
    fn verify_hashes(&self) -> Result<(), usize> { ... }
}

Serialized log message set.

The bytes must be serialized in the format defined by Message.

Required Methods

Bytes that make up the serialized message set.

Provided Methods

Iterator on the messages in the message set.

Number of messages in the message set.

Indicator of whether there are messages within the MessageSet.

Verifies the hashes of all the messages, returning the index of a corrupt message when found.

Implementors