Struct commitlog::CommitLog[][src]

pub struct CommitLog { /* fields omitted */ }
Expand description

The commit log is an append-only sequence of messages.

Implementations

Creates or opens an existing commit log.

Appends a single message to the log, returning the offset appended.

Appends log entrites to the commit log, returning the offsets appended.

Appends log entrites to the commit log, returning the offsets appended.

The offsets are expected to already be set within the buffer.

Gets the last written offset.

Gets the latest offset

Reads a portion of the log, starting with the start offset, inclusive, up to the limit.

Reads a portion of the log, starting with the start offset, inclusive, up to the limit via the reader.

Truncates a file after the offset supplied. The resulting log will contain entries up to the offset.

Forces a flush of the log.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.