pub enum OpenIntent {
Fresh,
Reopen,
}Expand description
Hint passed to the factory closure to disambiguate the two lifecycle calls.
Variants§
Fresh
Initial open at the temp path: caller should produce a
writeable resource. The caller’s MmapOptions should set
mode = OpenMode::ReadWrite.
Reopen
Reopen at the canonical path post-rename: caller should
produce a read-only / already-committed resource so the
resource’s status() reports Committed. The caller’s
MmapOptions should set mode = OpenMode::ReadOnly.
Trait Implementations§
Source§impl Clone for OpenIntent
impl Clone for OpenIntent
Source§fn clone(&self) -> OpenIntent
fn clone(&self) -> OpenIntent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenIntent
impl Debug for OpenIntent
Source§impl PartialEq for OpenIntent
impl PartialEq for OpenIntent
Source§fn eq(&self, other: &OpenIntent) -> bool
fn eq(&self, other: &OpenIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OpenIntent
impl Eq for OpenIntent
impl StructuralPartialEq for OpenIntent
Auto Trait Implementations§
impl Freeze for OpenIntent
impl RefUnwindSafe for OpenIntent
impl Send for OpenIntent
impl Sync for OpenIntent
impl Unpin for OpenIntent
impl UnsafeUnpin for OpenIntent
impl UnwindSafe for OpenIntent
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