struct DiskState {
disk_image: Box<dyn AsyncDisk>,
read_only: bool,
sparse: bool,
id: [u8; 20],
worker_shared_state: Arc<RwLock<WorkerSharedState>>,
}Expand description
Tracks the state of an anynchronous disk.
Fields§
§disk_image: Box<dyn AsyncDisk>§read_only: bool§sparse: bool§id: [u8; 20]A DiskState is owned by each worker’s executor and cannot be shared by workers, thus
worker_shared_state holds the state shared by workers in Arc.
Auto Trait Implementations§
impl Freeze for DiskState
impl !RefUnwindSafe for DiskState
impl !Send for DiskState
impl !Sync for DiskState
impl Unpin for DiskState
impl !UnwindSafe for DiskState
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