mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 14:11:32 +00:00
hypha: implement subcommands and introduce destroy that tears things down properly
This commit is contained in:
@ -5,6 +5,7 @@ use std::fmt::{Display, Formatter};
|
||||
use std::num::ParseIntError;
|
||||
use std::path::StripPrefixError;
|
||||
use xenclient::XenClientError;
|
||||
use xenstore::bus::XsdBusError;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, HyphaError>;
|
||||
|
||||
@ -98,3 +99,15 @@ impl From<std::fmt::Error> for HyphaError {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<uuid::Error> for HyphaError {
|
||||
fn from(value: uuid::Error) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<XsdBusError> for HyphaError {
|
||||
fn from(value: XsdBusError) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user