pub enum CheckError {
Misconfigured(String),
PermissionDenied(String),
Conflict(String),
FailedUpdate(String),
}Expand description
A custom error for describing the error cases for checks
Variants§
Misconfigured(String)
Cannot initialize check, because it has a misconfiguration.
PermissionDenied(String)
Cannot run check, because there isn’t enough permission.
Conflict(String)
Cannot update the check, because there is a conflict. This can be a merge conflict, a filesystem issue
FailedUpdate(String)
Running the trigger failed.
Trait Implementations§
Source§impl Debug for CheckError
impl Debug for CheckError
Source§impl Display for CheckError
impl Display for CheckError
Source§impl Error for CheckError
impl Error for CheckError
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<CheckError> for StartError
impl From<CheckError> for StartError
Source§fn from(source: CheckError) -> Self
fn from(source: CheckError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CheckError
impl RefUnwindSafe for CheckError
impl Send for CheckError
impl Sync for CheckError
impl Unpin for CheckError
impl UnwindSafe for CheckError
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