pub enum StorageOperation {
ReadComplete {
len: u32,
},
WriteComplete {
len: u32,
},
SyncComplete,
OpenComplete,
SetLenComplete {
new_len: u64,
},
}Expand description
Storage operations that can be scheduled in the simulation.
Unlike network operations which model data delivery, storage operations model the completion of I/O requests. Each operation represents a pending I/O that completes at the scheduled time.
Variants§
ReadComplete
Read operation completed.
The data has been read from storage and is ready to return to the caller. Faults (if any) are applied when processing.
WriteComplete
Write operation completed.
The data has been accepted by the storage layer. Note that without a sync, this data may be lost on crash.
SyncComplete
Sync operation completed.
All previously written data is now durable. May fail with sync_failure_probability.
OpenComplete
File open operation completed.
SetLenComplete
File truncate/extend operation completed.
Trait Implementations§
Source§impl Clone for StorageOperation
impl Clone for StorageOperation
Source§fn clone(&self) -> StorageOperation
fn clone(&self) -> StorageOperation
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 StorageOperation
impl Debug for StorageOperation
Source§impl PartialEq for StorageOperation
impl PartialEq for StorageOperation
impl Eq for StorageOperation
impl StructuralPartialEq for StorageOperation
Auto Trait Implementations§
impl Freeze for StorageOperation
impl RefUnwindSafe for StorageOperation
impl Send for StorageOperation
impl Sync for StorageOperation
impl Unpin for StorageOperation
impl UnsafeUnpin for StorageOperation
impl UnwindSafe for StorageOperation
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