Enum lotus_script::vehicle::VehicleError
source · 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)>
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 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