Struct riot_sys::msg_t[][src]

#[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

Performs the conversion.

Performs the conversion.

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.