#[non_exhaustive]pub enum InfraError {
Fleet(FleetError),
InvalidRequest {
domain: &'static str,
message: String,
},
UnsupportedTarget {
domain: &'static str,
host: HostId,
},
CommandFailed {
domain: &'static str,
host: HostId,
exit_code: Option<i32>,
stderr: String,
},
Parse {
domain: &'static str,
message: String,
},
Filesystem {
operation: &'static str,
path: PathBuf,
message: String,
},
PathOutsideRoots(PathBuf),
Docker(String),
}Expand description
Product-neutral infrastructure operation failure.
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.
Fleet(FleetError)
Fleet transport or topology failed.
InvalidRequest
A typed request violated a closed contract.
UnsupportedTarget
The target transport cannot execute the requested driver.
CommandFailed
A bounded command returned a non-zero status.
Fields
§
host: HostIdTarget host.
Parse
Driver output could not be parsed into the neutral contract.
Filesystem
Descriptor-confined filesystem access failed.
Fields
PathOutsideRoots(PathBuf)
Requested path was not within an admitted read root.
Docker(String)
Docker API access failed.
Trait Implementations§
Source§impl Clone for InfraError
impl Clone for InfraError
Source§fn clone(&self) -> InfraError
fn clone(&self) -> InfraError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InfraError
impl Debug for InfraError
Source§impl Display for InfraError
impl Display for InfraError
Source§impl Error for InfraError
impl Error for InfraError
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<FleetError> for InfraError
impl From<FleetError> for InfraError
Source§impl PartialEq for InfraError
impl PartialEq for InfraError
Source§fn eq(&self, other: &InfraError) -> bool
fn eq(&self, other: &InfraError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InfraError
impl StructuralPartialEq for InfraError
Auto Trait Implementations§
impl Freeze for InfraError
impl RefUnwindSafe for InfraError
impl Send for InfraError
impl Sync for InfraError
impl Unpin for InfraError
impl UnsafeUnpin for InfraError
impl UnwindSafe for InfraError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.