Enum zng_ext_image::ProxyGetResult
source · pub enum ProxyGetResult {
None,
Cache(ImageSource, ImageCacheMode, Option<ImageDownscale>, Option<ImageMaskMode>),
Image(ImageVar),
}
Expand description
Result of an ImageCacheProxy
get redirect.
Variants§
None
Proxy does not intercept the request.
The cache checks other proxies and fulfills the request if no proxy intercepts.
Cache(ImageSource, ImageCacheMode, Option<ImageDownscale>, Option<ImageMaskMode>)
Load and cache using the replacement source.
Image(ImageVar)
Return the image instead of hitting the cache.
Auto Trait Implementations§
impl !Freeze for ProxyGetResult
impl !RefUnwindSafe for ProxyGetResult
impl Send for ProxyGetResult
impl Sync for ProxyGetResult
impl Unpin for ProxyGetResult
impl !UnwindSafe for ProxyGetResult
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more