[][src]Struct n2k::Id

pub struct Id { /* fields omitted */ }

Implementations

impl Id[src]

pub fn new(prio: Priority, pgn: u32, src: u8, dst: u8) -> Result<Self, IdError>[src]

pub fn priority(&self) -> Priority[src]

pub fn pgn(&self) -> u32[src]

pub fn source(&self) -> u8[src]

pub fn destination(&self) -> u8[src]

pub fn value(&self) -> u32[src]

Trait Implementations

impl Clone for Id[src]

impl Copy for Id[src]

impl Debug for Id[src]

impl TryFrom<u32> for Id[src]

type Error = IdError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Id

impl Sync for Id

impl Unpin for Id

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.