Struct commitlog::CommitLog [] [src]

pub struct CommitLog { /* fields omitted */ }

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

Methods

impl CommitLog
[src]

[src]

Creates or opens an existing commit log.

[src]

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

[src]

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

[src]

Gets the last written offset.

[src]

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

[src]

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

[src]

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

[src]

Forces a flush of the log.

Trait Implementations

Auto Trait Implementations

impl Send for CommitLog

impl Sync for CommitLog