Enum net_traits::image_cache::ImageResponse
source · pub enum ImageResponse {
Loaded(Arc<Image>, ServoUrl),
MetadataLoaded(ImageMetadata),
PlaceholderLoaded(Arc<Image>, ServoUrl),
None,
}
Expand description
The returned image.
Variants§
Loaded(Arc<Image>, ServoUrl)
The requested image was loaded.
MetadataLoaded(ImageMetadata)
The request image metadata was loaded.
PlaceholderLoaded(Arc<Image>, ServoUrl)
The requested image failed to load, so a placeholder was loaded instead.
None
Neither the requested image nor the placeholder could be loaded.
Trait Implementations§
source§impl Clone for ImageResponse
impl Clone for ImageResponse
source§fn clone(&self) -> ImageResponse
fn clone(&self) -> ImageResponse
Returns a copy of the value. Read more
1.0.0 · 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 ImageResponse
impl Debug for ImageResponse
source§impl<'de> Deserialize<'de> for ImageResponse
impl<'de> Deserialize<'de> for ImageResponse
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
source§impl MallocSizeOf for ImageResponse
impl MallocSizeOf for ImageResponse
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.