Struct riot_sys::sock_event_t

source ·
#[repr(C)]
pub struct sock_event_t { pub super_: event_t, pub cb: sock_event_cb_t, pub sock: *mut c_void, pub cb_arg: *mut c_void, pub type_: sock_async_flags_t, }
Expand description

@brief Event definition for context scope

Fields§

§super_: event_t

< event structure that gets extended

§cb: sock_event_cb_t

< callback

§sock: *mut c_void

< generic pointer to a @ref net_sock object

§cb_arg: *mut c_void

< callback argument

§type_: sock_async_flags_t

< types of the event

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.