#[non_exhaustive]pub enum Enabled {
Auto,
Off,
Required,
}Expand description
DEVTOOLS_ENABLED, read as true or false, or the framework’s other ways to write them,
such as 1 or off.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Unset: the developer tools run in a build with debug assertions with APP_ENV=local.
Off
false: they don’t run, wherever they would.
Required
true: they must run. A build with debug assertions that runs with any APP_ENV but
local then refuses to start rather than run without them unnoticed, except in the
application’s tests. A build without debug assertions has none of the developer tools: it
starts without them and logs a warning that they were asked for.
Trait Implementations§
impl Copy for Enabled
impl Eq for Enabled
impl StructuralPartialEq for Enabled
Auto Trait Implementations§
impl Forget for Enabled
impl Freeze for Enabled
impl Move for Enabled
impl RefUnwindSafe for Enabled
impl Send for Enabled
impl Sync for Enabled
impl Unpin for Enabled
impl UnsafeUnpin for Enabled
impl UnwindSafe for Enabled
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.