pub enum IPBusPacketType {
Read = 0,
Write = 1,
ReadNonIncrement = 2,
WriteNonIncrement = 3,
RMW = 4,
Unknown = 99,
}
Expand description
The IPBus standard encodes several packet types.
The packet type then will instruct the receiver to either write/read/etc. values from its registers.
Technically, the IPBusPacketType is only 1 byte!
Variants§
Read = 0
Write = 1
ReadNonIncrement = 2
For reading multiple words, this will read the same register multiple times
WriteNonIncrement = 3
RMW = 4
Unknown = 99
This is not following IPBus packet specs
Implementations§
Trait Implementations§
Source§impl Clone for IPBusPacketType
impl Clone for IPBusPacketType
Source§fn clone(&self) -> IPBusPacketType
fn clone(&self) -> IPBusPacketType
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 IPBusPacketType
impl Debug for IPBusPacketType
Source§impl Display for IPBusPacketType
impl Display for IPBusPacketType
Source§impl PartialEq for IPBusPacketType
impl PartialEq for IPBusPacketType
impl Copy for IPBusPacketType
impl StructuralPartialEq for IPBusPacketType
Auto Trait Implementations§
impl Freeze for IPBusPacketType
impl RefUnwindSafe for IPBusPacketType
impl Send for IPBusPacketType
impl Sync for IPBusPacketType
impl Unpin for IPBusPacketType
impl UnwindSafe for IPBusPacketType
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