Struct pagecache::Reservation

source ·
pub struct Reservation<'a> { /* private fields */ }
Expand description

A pending log reservation which can be aborted or completed. NB the holder should quickly call complete or abort as taking too long to decide will cause the underlying IO buffer to become blocked.

Implementations

Cancel the reservation, placing a failed flush on disk, returning the (cancelled) log sequence number and file offset.

Complete the reservation, placing the buffer on disk. returns the log sequence number of the write, and the file offset.

Get the log file offset for reading this buffer in the future.

Get the log sequence number for this update.

Get the underlying storage location for the written value. Note that an blob write still has a pointer in the log at the provided lid location.

Trait Implementations

Executes the destructor for this type. 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.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.