pub enum HistoryAccessType {
    Tail {
        n: u64,
    },
    Range {
        session: i64,
        start: u64,
        stop: u64,
    },
    Search {
        pattern: String,
    },
}
Expand description

Type of history requested.

Variants

Tail

Fields

n: u64

Number of cells requested.

Get the last n cells.

Range

Fields

session: i64

Session to query for.

start: u64

Start of the range

stop: u64

End of the range.

Get the range of cells associated with a session within a range.

Search

Fields

pattern: String

Pattern to search for.

Search for history items matching a pattern.

Trait Implementations

Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.