wifi_promiscuous_pkt

Struct wifi_promiscuous_pkt 

Source
pub struct wifi_promiscuous_pkt {
    pub rx_ctrl: wifi_pkt_rx_ctrl,
    pub payload: Vec<u8, 500>,
    pub _has: _Hazzer,
}

Fields§

§rx_ctrl: wifi_pkt_rx_ctrl§payload: Vec<u8, 500>§_has: _Hazzer

Implementations§

Source§

impl wifi_promiscuous_pkt

Source

pub fn rx_ctrl(&self) -> Option<&wifi_pkt_rx_ctrl>

Return a reference to rx_ctrl as an Option

Source

pub fn set_rx_ctrl(&mut self, value: wifi_pkt_rx_ctrl) -> &mut Self

Set the value and presence of rx_ctrl

Source

pub fn mut_rx_ctrl(&mut self) -> Option<&mut wifi_pkt_rx_ctrl>

Return a mutable reference to rx_ctrl as an Option

Source

pub fn clear_rx_ctrl(&mut self) -> &mut Self

Clear the presence of rx_ctrl

Source

pub fn take_rx_ctrl(&mut self) -> Option<wifi_pkt_rx_ctrl>

Take the value of rx_ctrl and clear its presence

Source

pub fn init_rx_ctrl(self, value: wifi_pkt_rx_ctrl) -> Self

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

Source

pub fn payload(&self) -> &Vec<u8, 500>

Return a reference to payload

Source

pub fn mut_payload(&mut self) -> &mut Vec<u8, 500>

Return a mutable reference to payload

Source

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

Set the value of payload

Source

pub fn init_payload(self, value: Vec<u8, 500>) -> Self

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

Trait Implementations§

Source§

impl Clone for wifi_promiscuous_pkt

Source§

fn clone(&self) -> wifi_promiscuous_pkt

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_promiscuous_pkt

Source§

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

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

impl Default for wifi_promiscuous_pkt

Source§

fn default() -> wifi_promiscuous_pkt

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

impl MessageDecode for wifi_promiscuous_pkt

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_promiscuous_pkt

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_promiscuous_pkt

Source§

fn eq(&self, other: &Self) -> 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.

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.