[−][src]Struct lorawan_encoding::maccommands::Frequency
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]
pub fn eq(&self, other: &Frequency<'a>) -> bool[src]
pub fn ne(&self, other: &Frequency<'a>) -> bool[src]
impl<'a> StructuralPartialEq for Frequency<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Frequency<'a>[src]
impl<'a> Send for Frequency<'a>[src]
impl<'a> Sync for Frequency<'a>[src]
impl<'a> Unpin for Frequency<'a>[src]
impl<'a> UnwindSafe for Frequency<'a>[src]
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,