pub struct InterfaceStatus {
Show 13 fields pub ch_header: u8, pub ch_idx: u16, pub rxlev: u8, pub lb: u8, pub snr: u8, pub status: u8, pub token: u8, pub seq: u8, pub resp_to: u16, pub fof: u16, pub access_class: u8, pub address: Address, pub nls_state: NlsState,
}
Expand description

Dash7 metadata upon packet reception.

Fields§

§ch_header: u8

PHY layer channel header

§ch_idx: u16

PHY layer channel index

§rxlev: u8

PHY layer RX level in -dBm

§lb: u8

PHY layer link budget in dB

§snr: u8

Signal-to-noise Ratio (in dB)

§status: u8

D7ASP Status

§token: u8

Value of the D7ATP Dialog ID

§seq: u8

Value of the D7ATP Transaction ID

§resp_to: u16

Response delay (request to response time) in TiT

§fof: u16

Frequency offset in Hz

§access_class: u8

Listening access class of the sender

§address: Address

Address of source

§nls_state: NlsState

Security data

Trait Implementations§

source§

impl Clone for InterfaceStatus

source§

fn clone(&self) -> InterfaceStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Codec for InterfaceStatus

§

type Error = StdError

source§

fn encoded_size(&self) -> usize

Computes the number of bytes required to encode the item.
source§

unsafe fn encode_in(&self, out: &mut [u8]) -> usize

Encode the item into a given byte array. Read more
source§

fn decode(out: &[u8]) -> Result<WithSize<Self>, WithOffset<Self::Error>>

Attempt to decode a byte array to produce an item. May return the item with the bytes consumed, a request for more bytes or a parsing error
source§

fn encode(&self) -> Box<[u8]>

Allocate a byte array of the right size and encode the item in it.
source§

impl Debug for InterfaceStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for InterfaceStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<InterfaceStatus> for InterfaceStatus

source§

fn from(status: InterfaceStatus) -> Self

Converts to this type from the input type.
source§

impl From<InterfaceStatus> for InterfaceStatus

source§

fn from(status: InterfaceStatus) -> Self

Converts to this type from the input type.
source§

impl PartialEq for InterfaceStatus

source§

fn eq(&self, other: &InterfaceStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for InterfaceStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.