Struct net_traits::image::base::Image
source · pub struct Image {
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub bytes: IpcSharedMemory,
pub id: Option<ImageKey>,
pub cors_status: CorsStatus,
}
Fields§
§width: u32
§height: u32
§format: PixelFormat
§bytes: IpcSharedMemory
§id: Option<ImageKey>
§cors_status: CorsStatus
Trait Implementations§
source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 MallocSizeOf for Image
impl MallocSizeOf for Image
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.