Structs§
- Lock
Timeout Error - Details of a lock acquisition timeout returned by
LockFailBehavior::ReturnError.
Enums§
- Lock
Fail Behavior - Determines how an operation handles a bounded-lock timeout.
Functions§
- read
- Acquire a read lock via a non-blocking spin loop with an adaptive timeout.
- read_
adaptive readwith another base budget, still stretched by the I/O health.readis this with the 10 s base; a test uses a short base to take the same contended path without waiting 10–20 s.- read_
for - Acquire a read lock within an explicit hard budget.
- read_
timeout - The adaptive budget
readwaits for a contended lock: the 10 s base, stretched bycrate::core::io_health::adaptive_timeout. - read_
with_ behavior - Acquire a read lock with explicit timeout behavior for this operation.
- write
- Acquire a write lock via a non-blocking spin loop with an adaptive timeout.
See
read()for design rationale (#1018). - write_
adaptive write()with another base budget, still stretched by the I/O health.- write_
for - Acquire a write lock within an explicit hard budget.
- write_
timeout - The adaptive budget
write()waits for a contended lock. - write_
with_ behavior - Acquire a write lock with explicit timeout behavior for this operation.