pub enum ArmorModuleError {
FailedToParseArmorModule(Error),
FailedToParseGradeNumber(ParseIntError),
ArmorGradeError(ArmorGradeError),
ModuleClassError(ModuleClassError),
ShipTypeError(ShipTypeError),
FailedToParse(String),
}
Variants§
FailedToParseArmorModule(Error)
FailedToParseGradeNumber(ParseIntError)
ArmorGradeError(ArmorGradeError)
ModuleClassError(ModuleClassError)
ShipTypeError(ShipTypeError)
FailedToParse(String)
Trait Implementations§
Source§impl Debug for ArmorModuleError
impl Debug for ArmorModuleError
Source§impl Display for ArmorModuleError
impl Display for ArmorModuleError
Source§impl Error for ArmorModuleError
impl Error for ArmorModuleError
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<ArmorGradeError> for ArmorModuleError
impl From<ArmorGradeError> for ArmorModuleError
Source§fn from(source: ArmorGradeError) -> Self
fn from(source: ArmorGradeError) -> Self
Converts to this type from the input type.
Source§impl From<ArmorModuleError> for ShipInternalModuleError
impl From<ArmorModuleError> for ShipInternalModuleError
Source§fn from(source: ArmorModuleError) -> Self
fn from(source: ArmorModuleError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleClassError> for ArmorModuleError
impl From<ModuleClassError> for ArmorModuleError
Source§fn from(source: ModuleClassError) -> Self
fn from(source: ModuleClassError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for ArmorModuleError
impl From<ParseIntError> for ArmorModuleError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ShipTypeError> for ArmorModuleError
impl From<ShipTypeError> for ArmorModuleError
Source§fn from(source: ShipTypeError) -> Self
fn from(source: ShipTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArmorModuleError
impl !RefUnwindSafe for ArmorModuleError
impl Send for ArmorModuleError
impl Sync for ArmorModuleError
impl Unpin for ArmorModuleError
impl !UnwindSafe for ArmorModuleError
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