struct RutabagaResourceSnapshot {
resource_id: u32,
blob: bool,
blob_mem: u32,
blob_flags: u32,
map_info: Option<u32>,
info_2d: Option<Rutabaga2DSnapshot>,
info_3d: Option<Resource3DInfo>,
vulkan_info: Option<VulkanInfo>,
component_mask: u8,
size: u64,
}
Expand description
The preserved fields of RutabagaResource
that are saved and loaded across snapshot and
restore.
Fields§
§resource_id: u32
§blob: bool
§blob_mem: u32
§blob_flags: u32
§map_info: Option<u32>
§info_2d: Option<Rutabaga2DSnapshot>
§info_3d: Option<Resource3DInfo>
§vulkan_info: Option<VulkanInfo>
§component_mask: u8
§size: u64
Trait Implementations§
source§impl<'de> Deserialize<'de> for RutabagaResourceSnapshot
impl<'de> Deserialize<'de> for RutabagaResourceSnapshot
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
source§impl Serialize for RutabagaResourceSnapshot
impl Serialize for RutabagaResourceSnapshot
source§impl TryFrom<&RutabagaResource> for RutabagaResourceSnapshot
impl TryFrom<&RutabagaResource> for RutabagaResourceSnapshot
§type Error = RutabagaError
type Error = RutabagaError
The type returned in the event of a conversion error.
source§impl TryFrom<RutabagaResourceSnapshot> for RutabagaResource
impl TryFrom<RutabagaResourceSnapshot> for RutabagaResource
§type Error = RutabagaError
type Error = RutabagaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for RutabagaResourceSnapshot
impl Send for RutabagaResourceSnapshot
impl Sync for RutabagaResourceSnapshot
impl Unpin for RutabagaResourceSnapshot
impl UnwindSafe for RutabagaResourceSnapshot
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