Skip to main content

RawActionClientSpec

Struct RawActionClientSpec 

Source
pub struct RawActionClientSpec<'a> {
    pub node_id: Option<NodeId>,
    pub action_name: &'a str,
    pub type_name: &'a str,
    pub type_hash: &'a str,
    pub goal_response_callback: Option<unsafe extern "C" fn(*const GoalId, bool, *mut c_void)>,
    pub feedback_callback: Option<unsafe extern "C" fn(*const GoalId, *const u8, usize, *mut c_void)>,
    pub result_callback: Option<unsafe extern "C" fn(*const GoalId, GoalStatus, *const u8, usize, *mut c_void)>,
    pub context: *mut c_void,
}
Expand description

Inputs for raw (untyped) action-client registration.

Collapses the runtime arguments shared by the register_action_client_raw* family. Buffer sizes 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 client’s 4 underlying handles (send_goal / cancel_goal / get_result service clients + feedback subscriber) through the named Node’s session.

§action_name: &'a str§type_name: &'a str§type_hash: &'a str§goal_response_callback: Option<unsafe extern "C" fn(*const GoalId, bool, *mut c_void)>§feedback_callback: Option<unsafe extern "C" fn(*const GoalId, *const u8, usize, *mut c_void)>§result_callback: Option<unsafe extern "C" fn(*const GoalId, GoalStatus, *const u8, usize, *mut c_void)>§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.