pub struct ImageCommand {
pub id: u32,
pub data: String,
pub row: u16,
pub col: u16,
}Expand description
A command to display an image in the terminal.
Images are identified by an id so the renderer can track which images
are still visible and delete stale ones. row and col are the screen
cell where the terminal should place the top-left corner of the image.
Fields§
§id: u32Unique identifier for this image.
data: StringRaw image data or protocol-specific payload.
row: u16Target row (0-indexed) for the top-left corner of the image.
col: u16Target column (0-indexed) for the top-left corner of the image.
Trait Implementations§
Source§impl Clone for ImageCommand
impl Clone for ImageCommand
Source§fn clone(&self) -> ImageCommand
fn clone(&self) -> ImageCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageCommand
impl Debug for ImageCommand
Source§impl PartialEq for ImageCommand
impl PartialEq for ImageCommand
Source§fn eq(&self, other: &ImageCommand) -> bool
fn eq(&self, other: &ImageCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageCommand
Auto Trait Implementations§
impl Freeze for ImageCommand
impl RefUnwindSafe for ImageCommand
impl Send for ImageCommand
impl Sync for ImageCommand
impl Unpin for ImageCommand
impl UnsafeUnpin for ImageCommand
impl UnwindSafe for ImageCommand
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