Struct riot_sys::msg_t

source ·
#[repr(C)]
pub struct msg_t { pub sender_pid: kernel_pid_t, pub type_: u16, pub content: msg_t__bindgen_ty_1, }
Expand description

@brief Describes a message object which can be sent between threads.

User can set type and one of content.ptr and content.value. (content is a union) The meaning of type and the content fields is totally up to the user, the corresponding fields are never read by the kernel.

Fields§

§sender_pid: kernel_pid_t

< PID of sending thread. Will be filled in by msg_send.

§type_: u16

< Type field.

§content: msg_t__bindgen_ty_1

< Content of the message.

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.