Enum worker::PolishConfig
source · pub enum PolishConfig {
Off,
Lossy,
Lossless,
}
Expand description
Configuration options for Cloudflare’s image optimization feature: https://blog.cloudflare.com/introducing-polish-automatic-image-optimizati/
Variants§
Trait Implementations§
source§impl Clone for PolishConfig
impl Clone for PolishConfig
source§fn clone(&self) -> PolishConfig
fn clone(&self) -> PolishConfig
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 Default for PolishConfig
impl Default for PolishConfig
source§impl From<PolishConfig> for &str
impl From<PolishConfig> for &str
source§fn from(conf: PolishConfig) -> Self
fn from(conf: PolishConfig) -> Self
Converts to this type from the input type.
source§impl From<PolishConfig> for JsValue
impl From<PolishConfig> for JsValue
source§fn from(value: PolishConfig) -> Self
fn from(value: PolishConfig) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for PolishConfig
impl FromWasmAbi for PolishConfig
source§impl IntoWasmAbi for PolishConfig
impl IntoWasmAbi for PolishConfig
source§impl OptionFromWasmAbi for PolishConfig
impl OptionFromWasmAbi for PolishConfig
source§impl OptionIntoWasmAbi for PolishConfig
impl OptionIntoWasmAbi for PolishConfig
source§impl TryFromJsValue for PolishConfig
impl TryFromJsValue for PolishConfig
source§fn try_from_js_value(
value: JsValue
) -> Result<Self, <PolishConfig as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue ) -> Result<Self, <PolishConfig as TryFromJsValue>::Error>
Performs the conversion.
source§impl VectorFromWasmAbi for PolishConfig
impl VectorFromWasmAbi for PolishConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PolishConfig]>
source§impl VectorIntoWasmAbi for PolishConfig
impl VectorIntoWasmAbi for PolishConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PolishConfig]>) -> Self::Abi
source§impl WasmDescribeVector for PolishConfig
impl WasmDescribeVector for PolishConfig
impl Copy for PolishConfig
Auto Trait Implementations§
impl Freeze for PolishConfig
impl RefUnwindSafe for PolishConfig
impl Send for PolishConfig
impl Sync for PolishConfig
impl Unpin for PolishConfig
impl UnwindSafe for PolishConfig
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.