pub enum RoutineDifficulty {
Gentle,
Moderate,
Active,
}Expand description
How demanding a routine is. Ordered Gentle < Moderate < Active; the
per-kind *_routine_max_difficulty filter includes everything up to and
including the chosen level. Default is Active (the most permissive
filter) so a stale/unknown value can fall back through the shared
deserialize_with_fallback helper, matching the other tolerant settings
enums.
Variants§
Implementations§
Source§impl RoutineDifficulty
impl RoutineDifficulty
Sourcepub(crate) fn from_disk_str(raw: &str) -> Option<Self>
pub(crate) fn from_disk_str(raw: &str) -> Option<Self>
Parse the on-disk (lowercase) string; None for an unknown value so a
stale *_routine_max_difficulty falls back to the default instead of
failing the whole profile load (#212). Content packs parse routines
through the strict derived Deserialize, so a bad difficulty there is
still rejected.
Trait Implementations§
Source§impl Clone for RoutineDifficulty
impl Clone for RoutineDifficulty
Source§fn clone(&self) -> RoutineDifficulty
fn clone(&self) -> RoutineDifficulty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoutineDifficulty
Source§impl Debug for RoutineDifficulty
impl Debug for RoutineDifficulty
Source§impl Default for RoutineDifficulty
impl Default for RoutineDifficulty
Source§fn default() -> RoutineDifficulty
fn default() -> RoutineDifficulty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoutineDifficulty
impl<'de> Deserialize<'de> for RoutineDifficulty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoutineDifficulty
Source§impl PartialEq for RoutineDifficulty
impl PartialEq for RoutineDifficulty
Source§impl Serialize for RoutineDifficulty
impl Serialize for RoutineDifficulty
impl StructuralPartialEq for RoutineDifficulty
Auto Trait Implementations§
impl Freeze for RoutineDifficulty
impl RefUnwindSafe for RoutineDifficulty
impl Send for RoutineDifficulty
impl Sync for RoutineDifficulty
impl Unpin for RoutineDifficulty
impl UnsafeUnpin for RoutineDifficulty
impl UnwindSafe for RoutineDifficulty
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,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.