Struct pagecache::Reservation[][src]

pub struct Reservation<'a> { /* fields omitted */ }

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.

Methods

impl<'a> Reservation<'a>
[src]

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 external write still has a pointer in the log at the provided lid location.

Trait Implementations

impl<'a> Drop for Reservation<'a>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a> Send for Reservation<'a>

impl<'a> Sync for Reservation<'a>