pub enum BrokerError {
Timeformat(Format),
RadicleProfile(Error),
SpawnAdapter(PathBuf, Error),
UnknownDefaultAdapter(String),
NoAdapter(RepoId),
NotTrigger(Box<Request>),
BadRepoId(String, IdError),
NoRevisions,
Db(DbError),
}
Expand description
All possible errors from this module.
Variants§
Timeformat(Format)
Error formatting a time as a string.
RadicleProfile(Error)
Error from Radicle.
SpawnAdapter(PathBuf, Error)
Error from spawning a sub-process.
UnknownDefaultAdapter(String)
Default adapter is not in list of adapters.
NoAdapter(RepoId)
No adapter set for repository and no default adapter set.
NotTrigger(Box<Request>)
Request is not a trigger message.
BadRepoId(String, IdError)
Could not convert repository ID from string.
NoRevisions
Patch event doesn’t have any revisions.
Db(DbError)
Database error.
Trait Implementations§
Source§impl Debug for BrokerError
impl Debug for BrokerError
Source§impl Display for BrokerError
impl Display for BrokerError
Source§impl Error for BrokerError
impl Error for BrokerError
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<DbError> for BrokerError
impl From<DbError> for BrokerError
Source§impl From<Error> for BrokerError
impl From<Error> for BrokerError
Auto Trait Implementations§
impl Freeze for BrokerError
impl !RefUnwindSafe for BrokerError
impl Send for BrokerError
impl Sync for BrokerError
impl Unpin for BrokerError
impl !UnwindSafe for BrokerError
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