pub struct ImageCommand {
pub id: u32,
pub data: String,
}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.
Fields§
§id: u32Unique identifier for this image.
data: StringRaw image data or protocol-specific payload.
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