Trait RmwMessage

Source
pub trait RmwMessage:
    Clone
    + Debug
    + Default
    + Send
    + Sync
    + Message {
    const TYPE_NAME: &'static str;

    // Required method
    fn get_type_support() -> *const c_void;
}
Expand description

Trait for RMW-native messages.

See the documentation for the Message trait, which is the trait that should generally be used by user code.

User code never needs to call this trait’s method, much less implement this trait.

Required Associated Constants§

Source

const TYPE_NAME: &'static str

A string representation of this message’s type, e.g. “geometry_msgs/msg/Twist”

Required Methods§

Source

fn get_type_support() -> *const c_void

Get a pointer to the correct rosidl_message_type_support_t structure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§