Skip to main content

RawActionServerSpec

Struct RawActionServerSpec 

Source
pub struct RawActionServerSpec<'a> {
    pub node_id: Option<NodeId>,
    pub action_name: &'a str,
    pub type_name: &'a str,
    pub type_hash: &'a str,
    pub qos: QosSettings,
    pub goal_callback: RawGoalCallback,
    pub cancel_callback: RawCancelCallback,
    pub accepted_callback: Option<RawAcceptedCallback>,
    pub context: *mut c_void,
}
Expand description

Inputs for raw (untyped) action-server registration.

Collapses the runtime arguments shared by the register_action_server_raw* family. Buffer sizes / max-goals stay as const-generic turbofish parameters on the registration methods.

Fields§

§node_id: Option<NodeId>

None registers on the executor’s own node; Some(id) routes the server’s 5 underlying handles (send_goal / cancel_goal / get_result servers + feedback / status publishers) through the named Node’s session.

§action_name: &'a str§type_name: &'a str§type_hash: &'a str§qos: QosSettings

QoS for the action’s three underlying service servers (send_goal / cancel_goal / get_result; Phase 193.4b). The feedback + status publishers keep their own profiles. Use QosSettings::services_default for the rclc-compatible default.

§goal_callback: RawGoalCallback§cancel_callback: RawCancelCallback§accepted_callback: Option<RawAcceptedCallback>§context: *mut c_void

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.