#[repr(C)]pub struct SharedImagePlacement {
pub image_id: u64,
pub x: u16,
pub y: u16,
pub width_cells: u16,
pub height_cells: u16,
pub pixel_width: u32,
pub pixel_height: u32,
pub blob_offset: u32,
pub blob_size: u32,
pub format: u8,
pub flags: u8,
pub _padding: [u8; 6],
}Expand description
Image placement metadata for shared memory
Fields§
§image_id: u64Unique identifier for this placement
x: u16Column position in terminal grid
y: u16Row position in terminal grid
width_cells: u16Width in terminal cells
height_cells: u16Height in terminal cells
pixel_width: u32Pixel width of decoded image
pixel_height: u32Pixel height of decoded image
blob_offset: u32Offset into blob_data buffer
blob_size: u32Size of image data in bytes
format: u8Image format (0=PNG, 1=JPEG, 2=GIF, 3=RGBA)
flags: u8Flags (bit 0: valid/active)
_padding: [u8; 6]Padding for alignment
Implementations§
Trait Implementations§
Source§fn clone(&self) -> SharedImagePlacement
fn clone(&self) -> SharedImagePlacement
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 moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.