Struct ros2_client::action::ActionServer

source ·
pub struct ActionServer<A>{ /* private fields */ }

Implementations§

source§

impl<A> ActionServer<A>

source

pub fn name(&self) -> &Name

source

pub fn goal_server( &mut self ) -> &mut Server<AService<SendGoalRequest<A::GoalType>, SendGoalResponse>>

source

pub fn cancel_server( &mut self ) -> &mut Server<AService<CancelGoalRequest, CancelGoalResponse>>

source

pub fn result_server( &mut self ) -> &mut Server<AService<GetResultRequest, GetResultResponse<A::ResultType>>>

source

pub fn feedback_publisher( &mut self ) -> &mut Publisher<FeedbackMessage<A::FeedbackType>>

source

pub fn my_status_publisher(&mut self) -> &mut Publisher<GoalStatusArray>

source

pub fn receive_goal( &self ) -> ReadResult<Option<(RmwRequestId, SendGoalRequest<A::GoalType>)>>
where <A as ActionTypes>::GoalType: 'static,

Receive a new goal, if available.

source

pub fn send_goal_response( &self, req_id: RmwRequestId, resp: SendGoalResponse ) -> WriteResult<(), ()>
where <A as ActionTypes>::GoalType: 'static,

Send a response for the specified goal request

source

pub fn receive_cancel_request( &self ) -> ReadResult<Option<(RmwRequestId, CancelGoalRequest)>>

Receive a cancel request, if available.

source

pub fn send_cancel_response( &self, req_id: RmwRequestId, resp: CancelGoalResponse ) -> WriteResult<(), ()>

source

pub fn receive_result_request( &self ) -> ReadResult<Option<(RmwRequestId, GetResultRequest)>>
where <A as ActionTypes>::ResultType: 'static,

source

pub fn send_result( &self, result_request_id: RmwRequestId, resp: GetResultResponse<A::ResultType> ) -> WriteResult<(), ()>
where <A as ActionTypes>::ResultType: 'static,

source

pub fn send_feedback( &self, goal_id: GoalId, feedback: A::FeedbackType ) -> WriteResult<(), FeedbackMessage<A::FeedbackType>>

source

pub fn send_goal_statuses( &self, goal_statuses: GoalStatusArray ) -> WriteResult<(), GoalStatusArray>

Auto Trait Implementations§

§

impl<A> !Freeze for ActionServer<A>

§

impl<A> !RefUnwindSafe for ActionServer<A>

§

impl<A> Send for ActionServer<A>
where <A as ActionTypes>::FeedbackType: for<'de> Sized + Send, <A as ActionTypes>::ResultType: Sized + Send, <A as ActionTypes>::GoalType: Sized + Send,

§

impl<A> Sync for ActionServer<A>
where <A as ActionTypes>::FeedbackType: for<'de> Sized + Sync, <A as ActionTypes>::ResultType: Sized + Sync, <A as ActionTypes>::GoalType: Sized + Sync,

§

impl<A> Unpin for ActionServer<A>
where <A as ActionTypes>::FeedbackType: for<'de> Sized + Unpin, <A as ActionTypes>::ResultType: Sized + Unpin, <A as ActionTypes>::GoalType: Sized + Unpin,

§

impl<A> !UnwindSafe for ActionServer<A>

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>,

§

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>,

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V