pub struct CapturedImage {
pub width: u32,
pub height: u32,
pub rgba_base64: String,
pub node_id: Option<u64>,
}Expand description
An RGBA8 image, as the renderer actually drew it.
Fields§
§width: u32§height: u32§rgba_base64: StringRow-major RGBA8, four bytes per pixel, base64 over the wire.
Base64 rather than raw bytes because the transport is line-delimited JSON, and a full window at 2x is a few megabytes: large enough to be worth encoding compactly, not large enough to justify a second channel.
node_id: Option<u64>The node this shows, when the request named one.
Trait Implementations§
Source§impl Clone for CapturedImage
impl Clone for CapturedImage
Source§fn clone(&self) -> CapturedImage
fn clone(&self) -> CapturedImage
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 CapturedImage
impl Debug for CapturedImage
Source§impl<'de> Deserialize<'de> for CapturedImage
impl<'de> Deserialize<'de> for CapturedImage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CapturedImage
Source§impl PartialEq for CapturedImage
impl PartialEq for CapturedImage
Source§impl Serialize for CapturedImage
impl Serialize for CapturedImage
impl StructuralPartialEq for CapturedImage
Auto Trait Implementations§
impl Freeze for CapturedImage
impl RefUnwindSafe for CapturedImage
impl Send for CapturedImage
impl Sync for CapturedImage
impl Unpin for CapturedImage
impl UnsafeUnpin for CapturedImage
impl UnwindSafe for CapturedImage
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