pub struct GicState {
pub len: u64,
pub bytes: Vec<u8>,
}Expand description
Opaque GIC state blob from hv_gic_state_get_data.
The shape is HVF-specific; restoring a snapshot taken on KVM (e.g. on Linux
aarch64) into squib is explicitly not supported (D10), so the bytes flow through
as opaque. The len field is redundant with bytes.len() on the wire but keeps
serde_json::to_value (used for --describe-snapshot) self-documenting.
Fields§
§len: u64Length of the opaque blob (bytes).
bytes: Vec<u8>The blob itself.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GicState
impl<'de> Deserialize<'de> for GicState
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
impl Eq for GicState
impl StructuralPartialEq for GicState
Auto Trait Implementations§
impl Freeze for GicState
impl RefUnwindSafe for GicState
impl Send for GicState
impl Sync for GicState
impl Unpin for GicState
impl UnsafeUnpin for GicState
impl UnwindSafe for GicState
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