pub enum SerializedImageData {
Raw(IpcBytesReceiver),
External(ExternalImageData),
}
Expand description
Serialized ImageData
. It contains IPC byte channel receiver to prevent from loading bytes too
slow.
Variants§
Raw(IpcBytesReceiver)
A simple series of bytes, provided by the embedding and owned by WebRender. The format is stored out-of-band, currently in ImageDescriptor.
External(ExternalImageData)
An image owned by the embedding, and referenced by WebRender. This may take the form of a texture or a heap-allocated buffer.
Implementations§
source§impl SerializedImageData
impl SerializedImageData
sourcepub fn to_image_data(&self) -> Result<ImageData, IpcError>
pub fn to_image_data(&self) -> Result<ImageData, IpcError>
Convert to ``ImageData`.
Trait Implementations§
source§impl Debug for SerializedImageData
impl Debug for SerializedImageData
source§impl<'de> Deserialize<'de> for SerializedImageData
impl<'de> Deserialize<'de> for SerializedImageData
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
Auto Trait Implementations§
impl !Freeze for SerializedImageData
impl !RefUnwindSafe for SerializedImageData
impl Send for SerializedImageData
impl !Sync for SerializedImageData
impl Unpin for SerializedImageData
impl UnwindSafe for SerializedImageData
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