#[repr(C)]
pub struct rcutils_error_state_t { pub message: [c_char; 768], pub file: [c_char; 229], pub line_number: u64, }
Expand description

Struct which encapsulates the error state set by RCUTILS_SET_ERROR_MSG().

Fields

message: [c_char; 768]

User message storage, limited to RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH characters.

file: [c_char; 229]

File name, limited to what’s left from RCUTILS_ERROR_STATE_MAX_SIZE characters after subtracting storage for others.

line_number: u64

Line number of error.

Trait Implementations

Formats the value using the given formatter. 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.