[][src]Struct lorawan::maccommands::Frequency

pub struct Frequency<'a>(_);

Frequency represents a channel's central frequency.

Implementations

impl<'a> Frequency<'a>[src]

pub fn new_from_raw(bytes: &'a [u8]) -> Self[src]

Constructs a new Frequency from the provided bytes, without verifying if they are admissible.

Improper use of this method could lead to panic during runtime!

pub fn new(bytes: &'a [u8]) -> Option<Self>[src]

Constructs a new Frequency from the provided bytes.

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

Provides the decimal value in Hz of the frequency.

Trait Implementations

impl<'a> AsRef<[u8]> for Frequency<'a>[src]

impl<'a> Debug for Frequency<'a>[src]

impl<'a> From<&'a [u8; 3]> for Frequency<'a>[src]

impl<'a> PartialEq<Frequency<'a>> for Frequency<'a>[src]

impl<'a> StructuralPartialEq for Frequency<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Frequency<'a>

impl<'a> Send for Frequency<'a>

impl<'a> Sync for Frequency<'a>

impl<'a> Unpin for Frequency<'a>

impl<'a> UnwindSafe for Frequency<'a>

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, 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.