#[repr(u8)]pub enum DccError {
LocoStackIsFull = 1,
LocoAddressIsTaken = 2,
SessionIsNotPresent = 3,
EmptyConsist = 4,
LocoWasNotFound = 5,
RxBufferOverflow = 6,
InvalidRequest = 7,
SessionWasCancelled = 8,
}
Expand description
Error codes for ERR message
Variants§
LocoStackIsFull = 1
LocoAddressIsTaken = 2
SessionIsNotPresent = 3
EmptyConsist = 4
LocoWasNotFound = 5
RxBufferOverflow = 6
InvalidRequest = 7
SessionWasCancelled = 8
Trait Implementations§
Source§impl TryFromPrimitive for DccError
impl TryFromPrimitive for DccError
Source§impl UnsafeFromPrimitive for DccError
impl UnsafeFromPrimitive for DccError
type Primitive = u8
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for DccError
impl Eq for DccError
impl StructuralPartialEq for DccError
Auto Trait Implementations§
impl Freeze for DccError
impl RefUnwindSafe for DccError
impl Send for DccError
impl Sync for DccError
impl Unpin for DccError
impl UnwindSafe for DccError
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