pub struct DeviceSnapshot {
pub device_type: VirtioDeviceType,
pub name: String,
pub state: Vec<u8>,
}Expand description
Device snapshot state.
Fields§
§device_type: VirtioDeviceTypeDevice type.
name: StringDevice name/identifier.
state: Vec<u8>Device-specific state (serialized).
Trait Implementations§
Source§impl Clone for DeviceSnapshot
impl Clone for DeviceSnapshot
Source§fn clone(&self) -> DeviceSnapshot
fn clone(&self) -> DeviceSnapshot
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 DeviceSnapshot
impl Debug for DeviceSnapshot
Source§impl<'de> Deserialize<'de> for DeviceSnapshot
impl<'de> Deserialize<'de> for DeviceSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeviceSnapshot
impl RefUnwindSafe for DeviceSnapshot
impl Send for DeviceSnapshot
impl Sync for DeviceSnapshot
impl Unpin for DeviceSnapshot
impl UnsafeUnpin for DeviceSnapshot
impl UnwindSafe for DeviceSnapshot
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