pub struct SimLog {
pub wal: Wal<SimDevice>,
/* private fields */
}Expand description
The shared log of one simulated machine (log format 3): one write in flight, completed by the world after a random latency.
Fields§
§wal: Wal<SimDevice>Implementations§
Source§impl SimLog
impl SimLog
pub fn open( m: &MachineRef, shards: u32, segment_bytes: u64, in_flight: usize, spares: usize, offload: Offload, ) -> Result<SimLogRef>
Sourcepub fn complete_blobs(log: &SimLogRef, m: &MachineRef, id: u64)
pub fn complete_blobs(log: &SimLogRef, m: &MachineRef, id: u64)
The blob writes through job id may sync now, or fail.
Sourcepub fn complete(log: &SimLogRef, m: &MachineRef, seq: u64)
pub fn complete(log: &SimLogRef, m: &MachineRef, seq: u64)
The write seq may sync now, or fail.
Auto Trait Implementations§
impl !RefUnwindSafe for SimLog
impl !Send for SimLog
impl !Sync for SimLog
impl !UnwindSafe for SimLog
impl Forget for SimLog
impl Freeze for SimLog
impl Move for SimLog
impl Unpin for SimLog
impl UnsafeUnpin for SimLog
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