#[non_exhaustive]pub enum HookError {
Io {
path: PathBuf,
source: Error,
},
InvalidConfiguration {
path: PathBuf,
message: String,
},
Json(Error),
MissingRepositoryAlias(PathBuf),
InvalidSystemTime,
UnknownHost(String),
MissingPrompt,
}Expand description
Error returned by host installation and routing APIs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io
Filesystem operation failed.
InvalidConfiguration
Host JSON configuration was malformed or had an incompatible shape.
Json(Error)
Serialization failed.
MissingRepositoryAlias(PathBuf)
The repository root has no final component from which to derive an alias.
InvalidSystemTime
System time is earlier than the Unix epoch.
UnknownHost(String)
A command-line host identifier is unknown.
MissingPrompt
A routing event omitted a textual top-level prompt.
Trait Implementations§
Source§impl Error for HookError
impl Error for HookError
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 !RefUnwindSafe for HookError
impl !UnwindSafe for HookError
impl Freeze for HookError
impl Send for HookError
impl Sync for HookError
impl Unpin for HookError
impl UnsafeUnpin for HookError
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