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
sourceimpl<'a> Reservation<'a>
impl<'a> Reservation<'a>
sourcepub fn abort(self) -> Result<(Lsn, DiskPtr), ()>
pub fn abort(self) -> Result<(Lsn, DiskPtr), ()>
Cancel the reservation, placing a failed flush on disk, returning the (cancelled) log sequence number and file offset.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Reservation<'a>
impl<'a> !Send for Reservation<'a>
impl<'a> !Sync for Reservation<'a>
impl<'a> Unpin for Reservation<'a>
impl<'a> !UnwindSafe for Reservation<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more