pub enum Error {
Show 41 variants
ConfigNotFound(PathBuf),
FileRead {
path: PathBuf,
source: Error,
},
FileWrite {
path: PathBuf,
source: Error,
},
TomlParse {
path: PathBuf,
source: Error,
},
TomlSerialize(Error),
ServiceNotFound {
name: String,
suggestions: Vec<String>,
},
ServiceAlreadyInstalled(String),
ServiceNotInstalled(String),
ServiceIncomplete(String),
MissingRequiredServices {
service: String,
missing: Vec<String>,
},
RegistryNotFound(String),
PortsExhausted {
start: u16,
end: u16,
},
PortConflict {
port: u16,
},
Git(String),
Systemctl(String),
Tailscale(String),
DirCreate {
path: PathBuf,
source: Error,
},
Template(String),
AuthNotConfigured,
NoOidcSupport(String),
AuthExposureMismatch {
auth_url: String,
service: String,
service_url: String,
},
AuthRequiresReverseProxy {
service: String,
auth_url: String,
},
UnsupportedArchitecture(String),
UnknownEnvGroup {
service: String,
group: String,
hint: String,
},
ConfigureUnsupported {
service: String,
field: String,
workaround: String,
},
HomeDirNotFound,
InvalidServiceRef(String),
RegistryConfig(String),
Bundle(String),
AuthContext(String),
ConfigValidation(String),
HandEditedFiles {
service: String,
paths: Vec<PathBuf>,
},
NoBackup(String),
BackupNotFound {
service: String,
stamp: String,
},
BackupNotSupported(String),
BackupRepoNotConfigured,
BackupNotEnabled(String),
BackupNoSnapshots(String),
Restic(String),
BackupHookFailed {
service: String,
hook: String,
message: String,
},
BackupVersionMismatch {
service: String,
backed_up: String,
current: String,
},
}Variants§
ConfigNotFound(PathBuf)
FileRead
FileWrite
TomlParse
TomlSerialize(Error)
ServiceNotFound
ServiceAlreadyInstalled(String)
ServiceNotInstalled(String)
ServiceIncomplete(String)
MissingRequiredServices
RegistryNotFound(String)
PortsExhausted
PortConflict
Git(String)
Systemctl(String)
Tailscale(String)
DirCreate
Template(String)
AuthNotConfigured
NoOidcSupport(String)
AuthExposureMismatch
AuthRequiresReverseProxy
UnsupportedArchitecture(String)
UnknownEnvGroup
ConfigureUnsupported
HomeDirNotFound
InvalidServiceRef(String)
RegistryConfig(String)
Bundle(String)
AuthContext(String)
ConfigValidation(String)
HandEditedFiles
NoBackup(String)
BackupNotFound
BackupNotSupported(String)
BackupRepoNotConfigured
BackupNotEnabled(String)
BackupNoSnapshots(String)
Restic(String)
BackupHookFailed
BackupVersionMismatch
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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