#[repr(C)]
pub struct gnrc_netapi_opt_t { pub opt: netopt_t, pub context: u16, pub data: *mut c_void, pub data_len: u16, }
Expand description

@brief Data structure to be send for setting (@ref GNRC_NETAPI_MSG_TYPE_SET) and getting (@ref GNRC_NETAPI_MSG_TYPE_GET) options

Fields§

§opt: netopt_t

< the option to get/set

§context: u16

< (optional) context for that option

§data: *mut c_void

< data to set or buffer to read into

§data_len: u16

< size of the data / the buffer

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.