[−][src]Struct async_resol_vbus::PacketId
A tuple of identification information about a Packet
value.
It consists of the following parts:
- the channel
- the destination address
- the source address
- the command
Methods
impl PacketId
[src]
pub fn packet_id_string(&self) -> String
[src]
Create an ID string for the given PacketId
value.
Examples
use resol_vbus::PacketId; assert_eq!("11_1213_1415_10_1718", PacketId(0x11, 0x1213, 0x1415, 0x1718).packet_id_string());
Trait Implementations
impl Clone for PacketId
[src]
impl Copy for PacketId
[src]
impl Debug for PacketId
[src]
impl Eq for PacketId
[src]
impl Hash for PacketId
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PacketId
[src]
fn cmp(&self, other: &PacketId) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PacketId> for PacketId
[src]
impl PartialOrd<PacketId> for PacketId
[src]
fn partial_cmp(&self, other: &PacketId) -> Option<Ordering>
[src]
fn lt(&self, other: &PacketId) -> bool
[src]
fn le(&self, other: &PacketId) -> bool
[src]
fn gt(&self, other: &PacketId) -> bool
[src]
fn ge(&self, other: &PacketId) -> bool
[src]
impl StructuralEq for PacketId
[src]
impl StructuralPartialEq for PacketId
[src]
impl ToPacketId for PacketId
[src]
fn to_packet_id(&self) -> Result<PacketId, Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for PacketId
impl Send for PacketId
impl Sync for PacketId
impl Unpin for PacketId
impl UnwindSafe for PacketId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,