pub enum KittyImageData {
Direct(String),
File {
path: String,
data_size: Option<u32>,
data_offset: Option<u32>,
},
TemporaryFile {
path: String,
data_size: Option<u32>,
data_offset: Option<u32>,
},
SharedMem {
name: String,
data_size: Option<u32>,
data_offset: Option<u32>,
},
}
Variants
Direct(String)
The data bytes, baes64-encoded fragments. t=‘d’
File
Fields
path: String
The path to a file containing the data. t=‘f’
TemporaryFile
Fields
path: String
The path to a temporary file containing the data. If the path is in a known temporary location, it should be removed once the data has been read t=‘t’
SharedMem
The name of a shared memory object. Can be opened via shm_open() and then should be removed via shm_unlink(). On Windows, OpenFileMapping(), MapViewOfFile(), UnmapViewOfFile() and CloseHandle() are used to access and release the data. t=‘s’
Implementations
Trait Implementations
sourceimpl Clone for KittyImageData
impl Clone for KittyImageData
sourcefn clone(&self) -> KittyImageData
fn clone(&self) -> KittyImageData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KittyImageData
impl Debug for KittyImageData
sourceimpl PartialEq<KittyImageData> for KittyImageData
impl PartialEq<KittyImageData> for KittyImageData
sourcefn eq(&self, other: &KittyImageData) -> bool
fn eq(&self, other: &KittyImageData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KittyImageData) -> bool
fn ne(&self, other: &KittyImageData) -> bool
This method tests for !=
.
impl Eq for KittyImageData
impl StructuralEq for KittyImageData
impl StructuralPartialEq for KittyImageData
Auto Trait Implementations
impl RefUnwindSafe for KittyImageData
impl Send for KittyImageData
impl Sync for KittyImageData
impl Unpin for KittyImageData
impl UnwindSafe for KittyImageData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more