pub struct Machine {
pub disk: SimDisk,
pub now: u64,
pub rng: Rng,
pub io: BTreeMap<(u64, u64), Io>,
pub io_seq: u64,
pub epoch: u64,
pub flush_fail_per_mille: u32,
pub max_io_ms: u64,
pub log: Vec<String>,
}Expand description
State shared by all shards of one simulated machine.
Fields§
§disk: SimDisk§now: u64§rng: Rng§io: BTreeMap<(u64, u64), Io>(due time, insertion order) -> completion
io_seq: u64§epoch: u64§flush_fail_per_mille: u32§max_io_ms: u64§log: Vec<String>Implementations§
Auto Trait Implementations§
impl Forget for Machine
impl Freeze for Machine
impl Move for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
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