Enum wallswitch::WSError
source · pub enum WSError<'a> {
Parent(PathBuf),
MinValue,
MissingValue(&'a str),
InvalidValue(&'a str),
AtLeastValue(&'a str, u32),
UnexpectedArg(String),
TryInto(String),
}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§
Parent(PathBuf)
Directory path must exist
MinValue
Unable to obtain minimum value
MissingValue(&'a str)
Missing value
InvalidValue(&'a str)
Invalid value
AtLeastValue(&'a str, u32)
At least value
UnexpectedArg(String)
Unexpected argument
TryInto(String)
Try to performs the conversion
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)>
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 From<TryFromIntError> for WSError<'_>
impl From<TryFromIntError> for WSError<'_>
source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for WSError<'a>
impl<'a> RefUnwindSafe for WSError<'a>
impl<'a> Send for WSError<'a>
impl<'a> Sync for WSError<'a>
impl<'a> Unpin for WSError<'a>
impl<'a> UnwindSafe for WSError<'a>
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