#[repr(u8)]pub enum WaitMode {
Ack = 0,
Derived = 1,
}Expand description
Write-completion mode — how long a write op blocks before it returns.
API convention: writes take wait (this enum); reads take trace: bool.
They are never both on one op. On a write, waiting and the trace payload are
one decision — the only reason to wait for async derivation is to observe it —
so a single wait knob controls both. On a read there is no async to wait
for, so trace is a pure observability toggle with no timing effect.
Variants§
Ack = 0
Return after the durable sync ack; async derivation runs in the background. The fast default (omitted from the wire map).
Derived = 1
Block until async derivation completes, then return the full trace.
Implementations§
Trait Implementations§
impl Copy for WaitMode
Source§impl<'de> Deserialize<'de> for WaitMode
impl<'de> Deserialize<'de> for WaitMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WaitMode
impl StructuralPartialEq for WaitMode
Auto Trait Implementations§
impl Freeze for WaitMode
impl RefUnwindSafe for WaitMode
impl Send for WaitMode
impl Sync for WaitMode
impl Unpin for WaitMode
impl UnsafeUnpin for WaitMode
impl UnwindSafe for WaitMode
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