Skip to main content

PamojaGatewayNetworkEvent

Struct PamojaGatewayNetworkEvent 

Source
#[repr(C)]
pub struct PamojaGatewayNetworkEvent {
Show 18 fields pub outcome: u8, pub dev_eui: [u8; 8], pub dev_addr: u32, pub fcnt: u32, pub fport: u8, pub has_fport: bool, pub confirmed: bool, pub len: usize, pub truncated: bool, pub slot: PamojaGatewayNetworkSlot, pub accept: PamojaGatewayTxpk, pub relayed: bool, pub relay_dev_addr: u32, pub relay_rssi_dbm: i16, pub relay_snr_db: i8, pub relay_data_rate: u8, pub relay_wor_channel: u8, pub relay_frequency_hz: u32,
}
Expand description

What a forwarded packet turned out to be.

Fields§

§outcome: u8§dev_eui: [u8; 8]

The device that joined, for a join.

§dev_addr: u32

The address granted, or the address a frame claimed.

§fcnt: u32

The counter the frame carried, reconstructed to its full width, for data.

§fport: u8

The port the frame was sent on, for data on a port.

§has_fport: bool

Whether the frame carried a port at all.

§confirmed: bool

Whether the device asked to be acknowledged.

§len: usize

How many bytes were written into the caller buffer: the decrypted payload for data, and the accept to transmit for a join.

§truncated: bool

Whether the payload was longer than the buffer, in which case nothing was written.

§slot: PamojaGatewayNetworkSlot

Where an answer goes, for a join or for data.

§accept: PamojaGatewayTxpk

The packet that carries the accept, for a join.

§relayed: bool

Whether a relay forwarded this uplink, TS011-1.0.1 section 9.1. An answer to it goes back through the same relay, which pamoja_gateway_network_answer does by itself.

§relay_dev_addr: u32

The relay that forwarded it.

§relay_rssi_dbm: i16

What the relay heard of the uplink, in dBm.

§relay_snr_db: i8

Its signal-to-noise ratio, in dB.

§relay_data_rate: u8

The data rate it arrived at.

§relay_wor_channel: u8

The WOR channel the device woke the relay on: 0 for the default, 1 for the second.

§relay_frequency_hz: u32

The frequency the uplink arrived on, in hertz.

Trait Implementations§

Source§

impl Clone for PamojaGatewayNetworkEvent

Source§

fn clone(&self) -> PamojaGatewayNetworkEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PamojaGatewayNetworkEvent

Source§

impl Debug for PamojaGatewayNetworkEvent

Source§

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

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

impl Default for PamojaGatewayNetworkEvent

Source§

fn default() -> PamojaGatewayNetworkEvent

Returns the “default value” for a type. Read more
Source§

impl PartialEq for PamojaGatewayNetworkEvent

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PamojaGatewayNetworkEvent

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.