pub enum Failure {
Invalid(String),
NoToken(String),
GitHub(Error),
Mirror(Error),
}Expand description
Why an operation did not happen.
Three different things, and every surface says them differently: a request that was wrong (a draft with no title), GitHub refusing or failing, and the mirror itself failing.
Variants§
Invalid(String)
The request itself is wrong; nothing was asked of anybody.
NoToken(String)
Answering needs GitHub, and there is no token to ask with.
GitHub(Error)
GitHub refused or could not be reached.
Mirror(Error)
The mirror could not be read or written.
Implementations§
Trait Implementations§
Source§impl Error for Failure
impl Error for Failure
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()
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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