[][src]Struct rocks::transaction_log::LogFile

pub struct LogFile {
    pub path_name: String,
    pub log_number: u64,
    pub file_type: WalFileType,
    pub start_sequence: SequenceNumber,
    pub size_in_bytes: u64,
}

Represents a single WAL file

Fields

path_name: String

Returns log file's pathname relative to the main db dir Eg. For a live-log-file = /000003.log For an archived-log-file = /archive/000003.log

log_number: u64

Primary identifier for log file. This is directly proportional to creation time of the log file

file_type: WalFileType

Log file can be either alive or archived

start_sequence: SequenceNumber

Starting sequence number of writebatch written in this log file

size_in_bytes: u64

Size of log file on disk in Bytes

Trait Implementations

impl Debug for LogFile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.