#[repr(u8)]pub enum IPBusError {
DecodingFailed = 0,
InvalidTransactionID = 1,
InvalidPacketID = 2,
NotAStatusPacket = 3,
ConnectionTimeout = 4,
UdpSendFailed = 5,
UdpReceiveFailed = 6,
}
Expand description
IPBus provides a package format for sending UDP packets with a header. This is used by the MTB to send its packets over UDP
Variants§
DecodingFailed = 0
InvalidTransactionID = 1
InvalidPacketID = 2
NotAStatusPacket = 3
ConnectionTimeout = 4
UdpSendFailed = 5
UdpReceiveFailed = 6
Trait Implementations§
Source§impl Clone for IPBusError
impl Clone for IPBusError
Source§fn clone(&self) -> IPBusError
fn clone(&self) -> IPBusError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IPBusError
impl Debug for IPBusError
Source§impl<'de> Deserialize<'de> for IPBusError
impl<'de> Deserialize<'de> for IPBusError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IPBusError
impl Display for IPBusError
Source§impl Error for IPBusError
impl Error for IPBusError
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 PartialEq for IPBusError
impl PartialEq for IPBusError
Source§impl Serialize for IPBusError
impl Serialize for IPBusError
impl Copy for IPBusError
impl StructuralPartialEq for IPBusError
Auto Trait Implementations§
impl Freeze for IPBusError
impl RefUnwindSafe for IPBusError
impl Send for IPBusError
impl Sync for IPBusError
impl Unpin for IPBusError
impl UnwindSafe for IPBusError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more