pub struct LinuxWriteSession { /* private fields */ }Expand description
Product-owned durable staging session returned after the base bytes are installed.
Implementations§
Source§impl LinuxWriteSession
impl LinuxWriteSession
Sourcepub const fn new(
id: LinuxWriteSessionId,
key: CloudItemKey,
size: u64,
session_generation: SessionGeneration,
) -> Self
pub const fn new( id: LinuxWriteSessionId, key: CloudItemKey, size: u64, session_generation: SessionGeneration, ) -> Self
Creates a staging session response.
Sourcepub fn from_recovered(
id: LinuxWriteSessionId,
snapshot: LocalContentSnapshot,
session_generation: SessionGeneration,
) -> Self
pub fn from_recovered( id: LinuxWriteSessionId, snapshot: LocalContentSnapshot, session_generation: SessionGeneration, ) -> Self
Creates a session reopened from one immutable durable dirty snapshot.
Sourcepub const fn id(&self) -> &LinuxWriteSessionId
pub const fn id(&self) -> &LinuxWriteSessionId
Returns the opaque product-owned session identity.
Sourcepub const fn session_generation(&self) -> SessionGeneration
pub const fn session_generation(&self) -> SessionGeneration
Returns the mount session generation bound to this writeback session.
Trait Implementations§
Source§impl Clone for LinuxWriteSession
impl Clone for LinuxWriteSession
Source§fn clone(&self) -> LinuxWriteSession
fn clone(&self) -> LinuxWriteSession
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 LinuxWriteSession
impl Debug for LinuxWriteSession
Source§impl PartialEq for LinuxWriteSession
impl PartialEq for LinuxWriteSession
impl Eq for LinuxWriteSession
impl StructuralPartialEq for LinuxWriteSession
Auto Trait Implementations§
impl Freeze for LinuxWriteSession
impl RefUnwindSafe for LinuxWriteSession
impl Send for LinuxWriteSession
impl Sync for LinuxWriteSession
impl Unpin for LinuxWriteSession
impl UnwindSafe for LinuxWriteSession
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