#[non_exhaustive]pub enum SessionRuleError {
OpenOutOfRange {
open_ssm: u32,
},
CloseOutOfRange {
close_ssm: u32,
},
NoEnabledDays,
}Expand description
A SessionRule domain-invariant violation, reported by
SessionRule::new and SessionRule::validate.
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.
OpenOutOfRange
open_ssm is not inside 0..86_400.
CloseOutOfRange
close_ssm is not inside 0..=86_400.
NoEnabledDays
Every weekday is disabled, so the rule can never apply.
Trait Implementations§
Source§impl Clone for SessionRuleError
impl Clone for SessionRuleError
impl Copy for SessionRuleError
Source§impl Debug for SessionRuleError
impl Debug for SessionRuleError
Source§impl Display for SessionRuleError
impl Display for SessionRuleError
impl Eq for SessionRuleError
Source§impl Error for SessionRuleError
impl Error for SessionRuleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SessionRuleError
impl PartialEq for SessionRuleError
impl StructuralPartialEq for SessionRuleError
Auto Trait Implementations§
impl Forget for SessionRuleError
impl Freeze for SessionRuleError
impl Move for SessionRuleError
impl RefUnwindSafe for SessionRuleError
impl Send for SessionRuleError
impl Sync for SessionRuleError
impl Unpin for SessionRuleError
impl UnsafeUnpin for SessionRuleError
impl UnwindSafe for SessionRuleError
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