Enum wallswitch::WSError
source · pub enum WSError {
IntervalError(u64),
DimensionError(u32),
ParentError(PathBuf),
MinValueError,
}Expand description
The WSError enum defines the error values
https://doc.rust-lang.org/rust-by-example/error/multiple_error_types/define_error_type.html
Variants§
IntervalError(u64)
Interval >= 5
DimensionError(u32)
Dimension >= 10
ParentError(PathBuf)
Directory path must exist
MinValueError
Unable to obtain minimum value
Trait Implementations§
source§impl Error for WSError
impl Error for WSError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for WSError
impl RefUnwindSafe for WSError
impl Send for WSError
impl Sync for WSError
impl Unpin for WSError
impl UnwindSafe for WSError
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