wifi_event_ftm_report

Struct wifi_event_ftm_report 

Source
pub struct wifi_event_ftm_report {
    pub peer_mac: Vec<u8, 6>,
    pub status: i32,
    pub rtt_raw: u32,
    pub rtt_est: u32,
    pub dist_est: u32,
    pub ftm_report_data: Vec<wifi_ftm_report_entry, 8>,
    pub ftm_report_num_entries: u32,
}

Fields§

§peer_mac: Vec<u8, 6>§status: i32§rtt_raw: u32§rtt_est: u32§dist_est: u32§ftm_report_data: Vec<wifi_ftm_report_entry, 8>§ftm_report_num_entries: u32

Implementations§

Source§

impl wifi_event_ftm_report

Source

pub fn peer_mac(&self) -> &Vec<u8, 6>

Return a reference to peer_mac

Source

pub fn mut_peer_mac(&mut self) -> &mut Vec<u8, 6>

Return a mutable reference to peer_mac

Source

pub fn set_peer_mac(&mut self, value: Vec<u8, 6>) -> &mut Self

Set the value of peer_mac

Source

pub fn init_peer_mac(self, value: Vec<u8, 6>) -> Self

Builder method that sets the value of peer_mac. Useful for initializing the message.

Source

pub fn status(&self) -> &i32

Return a reference to status

Source

pub fn mut_status(&mut self) -> &mut i32

Return a mutable reference to status

Source

pub fn set_status(&mut self, value: i32) -> &mut Self

Set the value of status

Source

pub fn init_status(self, value: i32) -> Self

Builder method that sets the value of status. Useful for initializing the message.

Source

pub fn rtt_raw(&self) -> &u32

Return a reference to rtt_raw

Source

pub fn mut_rtt_raw(&mut self) -> &mut u32

Return a mutable reference to rtt_raw

Source

pub fn set_rtt_raw(&mut self, value: u32) -> &mut Self

Set the value of rtt_raw

Source

pub fn init_rtt_raw(self, value: u32) -> Self

Builder method that sets the value of rtt_raw. Useful for initializing the message.

Source

pub fn rtt_est(&self) -> &u32

Return a reference to rtt_est

Source

pub fn mut_rtt_est(&mut self) -> &mut u32

Return a mutable reference to rtt_est

Source

pub fn set_rtt_est(&mut self, value: u32) -> &mut Self

Set the value of rtt_est

Source

pub fn init_rtt_est(self, value: u32) -> Self

Builder method that sets the value of rtt_est. Useful for initializing the message.

Source

pub fn dist_est(&self) -> &u32

Return a reference to dist_est

Source

pub fn mut_dist_est(&mut self) -> &mut u32

Return a mutable reference to dist_est

Source

pub fn set_dist_est(&mut self, value: u32) -> &mut Self

Set the value of dist_est

Source

pub fn init_dist_est(self, value: u32) -> Self

Builder method that sets the value of dist_est. Useful for initializing the message.

Source

pub fn ftm_report_num_entries(&self) -> &u32

Return a reference to ftm_report_num_entries

Source

pub fn mut_ftm_report_num_entries(&mut self) -> &mut u32

Return a mutable reference to ftm_report_num_entries

Source

pub fn set_ftm_report_num_entries(&mut self, value: u32) -> &mut Self

Set the value of ftm_report_num_entries

Source

pub fn init_ftm_report_num_entries(self, value: u32) -> Self

Builder method that sets the value of ftm_report_num_entries. Useful for initializing the message.

Trait Implementations§

Source§

impl Clone for wifi_event_ftm_report

Source§

fn clone(&self) -> wifi_event_ftm_report

Returns a duplicate 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 Debug for wifi_event_ftm_report

Source§

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

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

impl Default for wifi_event_ftm_report

Source§

fn default() -> wifi_event_ftm_report

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

impl MessageDecode for wifi_event_ftm_report

Source§

fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>

Decode an instance of the message from the decoder and merge it into self. Read more
Source§

fn decode_from_bytes( &mut self, bytes: &[u8], ) -> Result<(), DecodeError<Infallible>>

Decode an instance of the message from the provided bytes
Source§

fn decode_len_delimited<R>( &mut self, decoder: &mut PbDecoder<R>, ) -> Result<(), DecodeError<<R as PbRead>::Error>>
where R: PbRead,

Decode an instance of the message from the decoder as a length-delimited record, starting with a length prefix.
Source§

impl MessageEncode for wifi_event_ftm_report

Source§

const MAX_SIZE: Option<usize>

Maximum encoded size of the message on the wire. Read more
Source§

fn encode<IMPL_MICROPB_WRITE: PbWrite>( &self, encoder: &mut PbEncoder<IMPL_MICROPB_WRITE>, ) -> Result<(), IMPL_MICROPB_WRITE::Error>

Encode this message using the encoder.
Source§

fn compute_size(&self) -> usize

Compute the size of this message on the wire.
Source§

fn encode_len_delimited<W>( &self, encoder: &mut PbEncoder<W>, ) -> Result<(), <W as PbWrite>::Error>
where W: PbWrite,

Encode this message as a length-delimited record, starting with a length prefix.
Source§

impl PartialEq for wifi_event_ftm_report

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for wifi_event_ftm_report

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

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.