pub enum VehicleError {
VehicleNotFound = 256,
BogieNotFound = 512,
AxleNotFound = 1_024,
CouplingNotFound = 2_048,
PantographNotFound = 4_096,
Unknown = 0,
}Variants§
VehicleNotFound = 256
BogieNotFound = 512
AxleNotFound = 1_024
CouplingNotFound = 2_048
PantographNotFound = 4_096
Unknown = 0
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()
Auto Trait Implementations§
impl Freeze for VehicleError
impl RefUnwindSafe for VehicleError
impl Send for VehicleError
impl Sync for VehicleError
impl Unpin 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