Trait Service

Source
pub trait Service: 'static {
    type Request: Message;
    type Response: Message;

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

Trait for services.

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

Required Associated Types§

Source

type Request: Message

The request message associated with this service.

Source

type Response: Message

The response message associated with this service.

Required Methods§

Source

fn get_type_support() -> *const c_void

Get a pointer to the correct rosidl_service_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§