pub enum EncodeFormat {
Jpeg,
Png,
Webp,
Avif,
Auto,
}Variants§
Jpeg
Png
Webp
Avif
AVIF. Encoding requires the avif crate feature; without
it, encode returns a clear error. Parsing + the URL spec always
recognize format-avif.
Auto
Content negotiation — picks the best the request accepts.
v0 behaves like WebP (browsers all support it). Future: read
the Accept header to pick AVIF when supported.
Trait Implementations§
Source§impl Clone for EncodeFormat
impl Clone for EncodeFormat
impl Copy for EncodeFormat
Source§impl Debug for EncodeFormat
impl Debug for EncodeFormat
Source§impl PartialEq for EncodeFormat
impl PartialEq for EncodeFormat
impl StructuralPartialEq for EncodeFormat
Auto Trait Implementations§
impl Freeze for EncodeFormat
impl RefUnwindSafe for EncodeFormat
impl Send for EncodeFormat
impl Sync for EncodeFormat
impl Unpin for EncodeFormat
impl UnsafeUnpin for EncodeFormat
impl UnwindSafe for EncodeFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.