Enum brane_cli::errors::InstanceError
source · pub enum InstanceError {
Show 24 variants
InstanceDirError {
err: UtilError,
},
InstanceInfoOpenError {
path: PathBuf,
err: Error,
},
InstanceInfoReadError {
path: PathBuf,
err: Error,
},
InstanceInfoParseError {
path: PathBuf,
err: Error,
},
InstanceInfoSerializeError {
err: Error,
},
InstanceInfoCreateError {
path: PathBuf,
err: Error,
},
InstanceInfoWriteError {
path: PathBuf,
err: Error,
},
IllegalInstanceName {
raw: String,
illegal_char: char,
},
AddressParseError {
err: AddressError,
},
RequestError {
address: String,
err: Error,
},
InstanceNotAliveError {
address: String,
code: StatusCode,
err: Option<String>,
},
ConfirmationError {
err: Error,
},
InstancesDirError {
err: UtilError,
},
InstancesDirReadError {
path: PathBuf,
err: Error,
},
InstancesDirEntryReadError {
path: PathBuf,
entry: usize,
err: Error,
},
ActiveInstanceTargetError {
path: PathBuf,
err: Error,
},
UnknownInstance {
name: String,
},
InstanceNotADirError {
path: PathBuf,
},
ActiveInstancePathError {
err: UtilError,
},
ActiveInstanceNotAFileError {
path: PathBuf,
},
ActiveInstanceReadError {
path: PathBuf,
err: Error,
},
ActiveInstanceRemoveError {
path: PathBuf,
err: Error,
},
ActiveInstanceCreateError {
path: PathBuf,
target: String,
err: Error,
},
NoActiveInstance,
}
Expand description
Collects errors during the identity-related subcommands (login, logout).
Variants§
InstanceDirError
Failed to get the directory of a specific instance.
InstanceInfoOpenError
Failed to open a file to load an InstanceInfo.
InstanceInfoReadError
Failed to read a file to load an InstanceInfo.
InstanceInfoParseError
Failed to parse the file to load an InstanceInfo.
InstanceInfoSerializeError
Failed to (re-)serialize an InstanceInfo.
InstanceInfoCreateError
Failed to create a new file to write an InstanceInfo to.
InstanceInfoWriteError
Failed to write an InstanceInfo the given file.
IllegalInstanceName
The given instance name is invalid.
AddressParseError
Failed to parse an address from the hostname (and a little modification).
Fields
err: AddressError
RequestError
Failed to send a request to the remote instance.
InstanceNotAliveError
The remote instance was not alive (at least, API/health was not)
ConfirmationError
Failed to ask the user for confirmation.
InstancesDirError
Failed to get the instances directory.
InstancesDirReadError
Failed to read the instances directory.
InstancesDirEntryReadError
Failed to read an entry in the instances directory.
ActiveInstanceTargetError
Failed to get the actual directory behind the active instance link.
UnknownInstance
The given instance is unknown to us.
InstanceNotADirError
The given instance exists but is not a directory.
ActiveInstancePathError
Failed to get the path of the active instance link.
ActiveInstanceNotAFileError
The active instance file exists but is not a softlink.
ActiveInstanceReadError
Failed to read the active instance link file.
ActiveInstanceRemoveError
Failed to remove an already existing active instance link.
ActiveInstanceCreateError
Failed to create a new active instance link.
NoActiveInstance
No instance is active
Trait Implementations§
source§impl Debug for InstanceError
impl Debug for InstanceError
source§impl Display for InstanceError
impl Display for InstanceError
source§impl Error for InstanceError
impl Error for InstanceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for InstanceError
impl !RefUnwindSafe for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl !UnwindSafe for InstanceError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
source§impl<T> ErrorTrace for T
impl<T> ErrorTrace for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request