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
sourceimpl Clone for ImageResponse
impl Clone for ImageResponse
sourcefn clone(&self) -> ImageResponse
fn clone(&self) -> ImageResponse
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 moresourceimpl Debug for ImageResponse
impl Debug for ImageResponse
sourceimpl<'de> Deserialize<'de> for ImageResponse
impl<'de> Deserialize<'de> for ImageResponse
sourcefn 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
sourceimpl MallocSizeOf for ImageResponse
impl MallocSizeOf for ImageResponse
sourcefn 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. Read more
sourceimpl Serialize for ImageResponse
impl Serialize for ImageResponse
Auto Trait Implementations
impl RefUnwindSafe for ImageResponse
impl Send for ImageResponse
impl Sync for ImageResponse
impl Unpin for ImageResponse
impl UnwindSafe for ImageResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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