pub struct WriteOptions<V>where
V: Identities,{ /* private fields */ }Expand description
The advanced parameters of a write. Passed by value and built with setters, like
windows-ioring-sys’ PushOptions; the fields are private, so adding one later is not a
breaking change. A gate may name an epoch in any lineage of this instance, including another
lineage than the write’s own.
Implementations§
Source§impl<V> WriteOptions<V>where
V: Identities,
impl<V> WriteOptions<V>where
V: Identities,
Sourcepub fn new() -> WriteOptions<V>
pub fn new() -> WriteOptions<V>
No gate, and WriteCaching::Cached.
Sourcepub fn caching(self, caching: WriteCaching) -> WriteOptions<V>
pub fn caching(self, caching: WriteCaching) -> WriteOptions<V>
Whether the write may rest in the system cache (DI-2.6).
Sourcepub fn gate(self, epoch: Epoch<V>) -> WriteOptions<V>
pub fn gate(self, epoch: Epoch<V>) -> WriteOptions<V>
Hold the write until epoch is durable; it ends as NeverIssued if epoch, or the
write’s own epoch, is abandoned first (contract guarantee 9). epoch may be in any lineage
of the instance, the write’s own included.
Trait Implementations§
Source§impl<V> Clone for WriteOptions<V>where
V: Clone + Identities,
impl<V> Clone for WriteOptions<V>where
V: Clone + Identities,
Source§fn clone(&self) -> WriteOptions<V>
fn clone(&self) -> WriteOptions<V>
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 moreimpl<V> Copy for WriteOptions<V>where
V: Copy + Identities,
Source§impl<V> Debug for WriteOptions<V>where
V: Debug + Identities,
impl<V> Debug for WriteOptions<V>where
V: Debug + Identities,
Source§impl<V> Default for WriteOptions<V>where
V: Identities,
impl<V> Default for WriteOptions<V>where
V: Identities,
Source§fn default() -> WriteOptions<V>
fn default() -> WriteOptions<V>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<V> Freeze for WriteOptions<V>
impl<V> RefUnwindSafe for WriteOptions<V>
impl<V> Send for WriteOptions<V>
impl<V> Sync for WriteOptions<V>
impl<V> Unpin for WriteOptions<V>
impl<V> UnsafeUnpin for WriteOptions<V>
impl<V> UnwindSafe for WriteOptions<V>
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