pub enum Environment {
Dev,
Production,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a duplicate 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 Display for Environment
impl Display for Environment
Source§impl From<Environment> for JsValue
impl From<Environment> for JsValue
Source§fn from(value: Environment) -> Self
fn from(value: Environment) -> Self
Converts to this type from the input type.
Source§impl FromStr for Environment
impl FromStr for Environment
Source§impl FromWasmAbi for Environment
impl FromWasmAbi for Environment
Source§impl IntoWasmAbi for Environment
impl IntoWasmAbi for Environment
Source§impl OptionFromWasmAbi for Environment
impl OptionFromWasmAbi for Environment
Source§impl OptionIntoWasmAbi for Environment
impl OptionIntoWasmAbi for Environment
Source§impl TryFromJsValue for Environment
impl TryFromJsValue for Environment
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <Environment as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <Environment as TryFromJsValue>::Error>
Performs the conversion.
Source§impl ValueEnum for Environment
impl ValueEnum for Environment
Source§impl VectorFromWasmAbi for Environment
impl VectorFromWasmAbi for Environment
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Environment]>
Source§impl VectorIntoJsValue for Environment
impl VectorIntoJsValue for Environment
fn vector_into_jsvalue(vector: Box<[Environment]>) -> JsValue
Source§impl VectorIntoWasmAbi for Environment
impl VectorIntoWasmAbi for Environment
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Environment]>) -> Self::Abi
Source§impl WasmDescribeVector for Environment
impl WasmDescribeVector for Environment
impl Copy for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§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.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.