pub enum VehicleError {
VehicleNotFound = 256,
BogieNotFound = 512,
AxleNotFound = 1_024,
CouplingNotFound = 2_048,
PantographNotFound = 4_096,
RoadAxleNotFound = 8_192,
RoadWheelNotFound = 16_384,
Unknown = 0,
}Expand description
Fehler beim Auflösen von Fahrzeugkomponenten.
Errors returned when resolving vehicle components.
Variants§
VehicleNotFound = 256
Das Fahrzeug wurde nicht gefunden.
The vehicle was not found.
BogieNotFound = 512
Das Drehgestell wurde nicht gefunden.
The bogie was not found.
AxleNotFound = 1_024
Die Achse wurde nicht gefunden.
The axle was not found.
CouplingNotFound = 2_048
Die Kupplung wurde nicht gefunden.
The coupling was not found.
PantographNotFound = 4_096
Der Stromabnehmer wurde nicht gefunden.
The pantograph was not found.
RoadAxleNotFound = 8_192
Die Straßenachse wurde nicht gefunden.
The road axle was not found.
RoadWheelNotFound = 16_384
Das Straßenrad wurde nicht gefunden.
The road wheel was not found.
Unknown = 0
Ein unbekannter Fehler ist aufgetreten.
An unknown error occurred.
Trait Implementations§
Source§impl Debug for VehicleError
impl Debug for VehicleError
Source§impl Display for VehicleError
impl Display for VehicleError
Source§impl Error for VehicleError
impl Error for VehicleError
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<u32> for VehicleError
impl From<u32> for VehicleError
Source§fn from(value: u32) -> VehicleError
fn from(value: u32) -> VehicleError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VehicleError
impl RefUnwindSafe for VehicleError
impl Send for VehicleError
impl Sync for VehicleError
impl Unpin for VehicleError
impl UnsafeUnpin for VehicleError
impl UnwindSafe for VehicleError
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