pub struct ImagePlacement {
pub id: u64,
pub x: u16,
pub y: u16,
pub width_cells: u16,
pub height_cells: u16,
pub shm_offset: usize,
pub shm_size: usize,
pub format: ImageFormat,
}Expand description
Represents an image placement in the terminal grid
Images are transferred via shared memory to avoid protocol overhead. This struct contains the metadata and reference to the image data.
Fields§
§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
shm_offset: usizeOffset into shared memory image buffer
shm_size: usizeSize of image data in shared memory
format: ImageFormatImage format
Trait Implementations§
Source§impl Clone for ImagePlacement
impl Clone for ImagePlacement
Source§fn clone(&self) -> ImagePlacement
fn clone(&self) -> ImagePlacement
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§
impl Freeze for ImagePlacement
impl RefUnwindSafe for ImagePlacement
impl Send for ImagePlacement
impl Sync for ImagePlacement
impl Unpin for ImagePlacement
impl UnsafeUnpin for ImagePlacement
impl UnwindSafe for ImagePlacement
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> 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.