Struct ros2_client::action::ActionServer
source · pub struct ActionServer<A>where
A: ActionTypes,
A::GoalType: Message + Clone,
A::ResultType: Message + Clone,
A::FeedbackType: Message,{ /* private fields */ }
Implementations§
source§impl<A> ActionServer<A>where
A: ActionTypes,
A::GoalType: Message + Clone,
A::ResultType: Message + Clone,
A::FeedbackType: Message,
impl<A> ActionServer<A>where
A: ActionTypes,
A::GoalType: Message + Clone,
A::ResultType: Message + Clone,
A::FeedbackType: Message,
pub fn name(&self) -> &Name
pub fn goal_server( &mut self ) -> &mut Server<AService<SendGoalRequest<A::GoalType>, SendGoalResponse>>
pub fn cancel_server( &mut self ) -> &mut Server<AService<CancelGoalRequest, CancelGoalResponse>>
pub fn result_server( &mut self ) -> &mut Server<AService<GetResultRequest, GetResultResponse<A::ResultType>>>
pub fn feedback_publisher( &mut self ) -> &mut Publisher<FeedbackMessage<A::FeedbackType>>
pub fn my_status_publisher(&mut self) -> &mut Publisher<GoalStatusArray>
sourcepub fn receive_goal(
&self
) -> ReadResult<Option<(RmwRequestId, SendGoalRequest<A::GoalType>)>>where
<A as ActionTypes>::GoalType: 'static,
pub fn receive_goal(
&self
) -> ReadResult<Option<(RmwRequestId, SendGoalRequest<A::GoalType>)>>where
<A as ActionTypes>::GoalType: 'static,
Receive a new goal, if available.
sourcepub fn send_goal_response(
&self,
req_id: RmwRequestId,
resp: SendGoalResponse
) -> WriteResult<(), ()>where
<A as ActionTypes>::GoalType: 'static,
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
sourcepub fn receive_cancel_request(
&self
) -> ReadResult<Option<(RmwRequestId, CancelGoalRequest)>>
pub fn receive_cancel_request( &self ) -> ReadResult<Option<(RmwRequestId, CancelGoalRequest)>>
Receive a cancel request, if available.
pub fn send_cancel_response( &self, req_id: RmwRequestId, resp: CancelGoalResponse ) -> WriteResult<(), ()>
pub fn receive_result_request(
&self
) -> ReadResult<Option<(RmwRequestId, GetResultRequest)>>where
<A as ActionTypes>::ResultType: 'static,
pub fn send_result(
&self,
result_request_id: RmwRequestId,
resp: GetResultResponse<A::ResultType>
) -> WriteResult<(), ()>where
<A as ActionTypes>::ResultType: 'static,
pub fn send_feedback( &self, goal_id: GoalId, feedback: A::FeedbackType ) -> WriteResult<(), FeedbackMessage<A::FeedbackType>>
pub fn send_goal_statuses( &self, goal_statuses: GoalStatusArray ) -> WriteResult<(), GoalStatusArray>
Auto Trait Implementations§
impl<A> !RefUnwindSafe for ActionServer<A>
impl<A> Send for ActionServer<A>where
<A as ActionTypes>::FeedbackType: Send,
<A as ActionTypes>::GoalType: Send,
<A as ActionTypes>::ResultType: Send,
impl<A> Sync for ActionServer<A>where
<A as ActionTypes>::FeedbackType: Sync,
<A as ActionTypes>::GoalType: Sync,
<A as ActionTypes>::ResultType: Sync,
impl<A> Unpin for ActionServer<A>where
<A as ActionTypes>::FeedbackType: Unpin,
<A as ActionTypes>::GoalType: Unpin,
<A as ActionTypes>::ResultType: Unpin,
impl<A> !UnwindSafe for ActionServer<A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more