pub enum InventoryLoadError {
Read {
kind: InventoryFileKind,
path: String,
message: String,
},
ParseJson {
kind: InventoryFileKind,
path: String,
message: String,
},
ParseYaml {
kind: InventoryFileKind,
path: String,
message: String,
},
UnsupportedFormat {
kind: InventoryFileKind,
path: String,
},
TransformPluginNotFound {
name: String,
},
NotTransformPlugin {
name: String,
},
Message(String),
}Expand description
Error returned when inventory loading fails.
Variants§
Read
Reading an inventory file failed.
Fields
§
kind: InventoryFileKindWhich logical inventory file failed.
ParseJson
Parsing a JSON inventory file failed.
Fields
§
kind: InventoryFileKindWhich logical inventory file failed.
ParseYaml
Parsing a YAML inventory file failed.
Fields
§
kind: InventoryFileKindWhich logical inventory file failed.
UnsupportedFormat
The inventory file extension is not supported.
Fields
§
kind: InventoryFileKindWhich logical inventory file failed.
TransformPluginNotFound
A configured transform plugin was not found.
NotTransformPlugin
A configured plugin exists but is not a transform-function plugin.
Message(String)
A human-readable fallback error message.
Trait Implementations§
Source§impl Clone for InventoryLoadError
impl Clone for InventoryLoadError
Source§fn clone(&self) -> InventoryLoadError
fn clone(&self) -> InventoryLoadError
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 InventoryLoadError
impl Debug for InventoryLoadError
Source§impl Display for InventoryLoadError
impl Display for InventoryLoadError
Source§impl Error for InventoryLoadError
impl Error for InventoryLoadError
1.30.0 · 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<&str> for InventoryLoadError
impl From<&str> for InventoryLoadError
Source§impl From<InventoryLoadError> for GenjaError
impl From<InventoryLoadError> for GenjaError
Source§fn from(value: InventoryLoadError) -> Self
fn from(value: InventoryLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InventoryLoadError
impl RefUnwindSafe for InventoryLoadError
impl Send for InventoryLoadError
impl Sync for InventoryLoadError
impl Unpin for InventoryLoadError
impl UnsafeUnpin for InventoryLoadError
impl UnwindSafe for InventoryLoadError
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