pub enum UpsError {
Load(LoadError),
Apply(ApplyError),
Create(CreateError),
}
Expand description
Error type returned when something goes wrong
This is what is actually returned from all the functions, and its the job of hte program that implements this library to deal with the error and whatever it contains
Variants§
Implementations§
Trait Implementations§
Source§impl Error for UpsError
impl Error for UpsError
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()
impl Eq for UpsError
impl StructuralPartialEq for UpsError
Auto Trait Implementations§
impl Freeze for UpsError
impl RefUnwindSafe for UpsError
impl Send for UpsError
impl Sync for UpsError
impl Unpin for UpsError
impl UnwindSafe for UpsError
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