pub struct LinuxWriteCommit { /* private fields */ }Expand description
Result of one durably accepted write, truncate, flush, or fsync operation.
Implementations§
Source§impl LinuxWriteCommit
impl LinuxWriteCommit
Sourcepub const fn new(snapshot: LocalContentSnapshot) -> Self
pub const fn new(snapshot: LocalContentSnapshot) -> Self
Creates a commit backed by one immutable local generation.
Sourcepub const fn snapshot(&self) -> &LocalContentSnapshot
pub const fn snapshot(&self) -> &LocalContentSnapshot
Returns the immutable dirty snapshot that is safe for upload recovery.
Sourcepub fn into_snapshot(self) -> LocalContentSnapshot
pub fn into_snapshot(self) -> LocalContentSnapshot
Consumes the commit into its immutable snapshot.
Trait Implementations§
Source§impl Clone for LinuxWriteCommit
impl Clone for LinuxWriteCommit
Source§fn clone(&self) -> LinuxWriteCommit
fn clone(&self) -> LinuxWriteCommit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinuxWriteCommit
impl Debug for LinuxWriteCommit
Source§impl PartialEq for LinuxWriteCommit
impl PartialEq for LinuxWriteCommit
impl Eq for LinuxWriteCommit
impl StructuralPartialEq for LinuxWriteCommit
Auto Trait Implementations§
impl Freeze for LinuxWriteCommit
impl RefUnwindSafe for LinuxWriteCommit
impl Send for LinuxWriteCommit
impl Sync for LinuxWriteCommit
impl Unpin for LinuxWriteCommit
impl UnwindSafe for LinuxWriteCommit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more