pub enum MapperError {
DataDirNotFound {
path: String,
},
BundleNotFound {
fv: String,
},
VariantNotFound {
fv: String,
variant: String,
},
PidNotFound {
fv: String,
variant: String,
pid: String,
},
Assembly(AssemblyError),
Mapping(MappingError),
Io(Error),
}Expand description
Errors that can occur when using the Mapper API.
Variants§
DataDirNotFound
The specified data directory does not exist on disk.
BundleNotFound
No data bundle file found for the requested format version.
VariantNotFound
The requested variant (e.g., “UTILMD_Strom”) is not present in the bundle.
PidNotFound
No mapping engine definitions exist for the given PID within the variant.
Assembly(AssemblyError)
An error from the MIG assembly layer.
Mapping(MappingError)
An error from the TOML mapping engine.
Io(Error)
A standard I/O error.
Trait Implementations§
Source§impl Debug for MapperError
impl Debug for MapperError
Source§impl Display for MapperError
impl Display for MapperError
Source§impl Error for MapperError
impl Error for MapperError
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<AssemblyError> for MapperError
impl From<AssemblyError> for MapperError
Source§fn from(source: AssemblyError) -> Self
fn from(source: AssemblyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for MapperError
impl From<Error> for MapperError
Source§impl From<MappingError> for MapperError
impl From<MappingError> for MapperError
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapperError
impl !RefUnwindSafe for MapperError
impl Send for MapperError
impl Sync for MapperError
impl Unpin for MapperError
impl UnsafeUnpin for MapperError
impl !UnwindSafe for MapperError
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