riot_sys

Type Alias netopt_connect_request_t

Source
pub type netopt_connect_request_t = netopt_connect_request;
Expand description

@brief Basic network connect request

Aliased Type§

struct netopt_connect_request_t {
    pub disconn_cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *const netopt_disconnect_result)>,
    pub conn_cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *const netopt_connect_result)>,
    pub channel: u16,
}

Fields§

§disconn_cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *const netopt_disconnect_result)>

< On disconnect callback

§conn_cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *const netopt_connect_result)>

< On connect callback

§channel: u16

< Channel of the network to connect to

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 12 bytes