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