Skip to main content

GoalFeedbackStream

Struct GoalFeedbackStream 

Source
pub struct GoalFeedbackStream<'a, A: RosAction, const GOAL_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const RESULT_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const FEEDBACK_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> { /* private fields */ }
Expand description

A goal-filtered feedback stream.

Created by ActionClient::feedback_stream_for(). Only yields feedback messages matching the specified goal ID.

Implementations§

Source§

impl<A: RosAction, const GOAL_BUF: usize, const RESULT_BUF: usize, const FEEDBACK_BUF: usize> GoalFeedbackStream<'_, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

Source

pub async fn recv(&mut self) -> Option<Result<A::Feedback, NodeError>>

Async: wait for the next feedback message for this goal (no futures dependency needed).

When the stream feature is enabled, prefer StreamExt::next() or TryStreamExt::try_next() for combinator support.

Source

pub fn wait_next( &mut self, executor: &mut Executor, timeout: Duration, ) -> Result<Option<A::Feedback>, NodeError>

Sync: wait for the next feedback message for this goal, spinning the executor.

Auto Trait Implementations§

§

impl<'a, A, const GOAL_BUF: usize, const RESULT_BUF: usize, const FEEDBACK_BUF: usize> Freeze for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

§

impl<'a, A, const GOAL_BUF: usize, const RESULT_BUF: usize, const FEEDBACK_BUF: usize> RefUnwindSafe for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>
where A: RefUnwindSafe,

§

impl<'a, A, const GOAL_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const RESULT_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const FEEDBACK_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> !Send for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

§

impl<'a, A, const GOAL_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const RESULT_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const FEEDBACK_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> !Sync for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

§

impl<'a, A, const GOAL_BUF: usize, const RESULT_BUF: usize, const FEEDBACK_BUF: usize> Unpin for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

§

impl<'a, A, const GOAL_BUF: usize, const RESULT_BUF: usize, const FEEDBACK_BUF: usize> UnsafeUnpin for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

§

impl<'a, A, const GOAL_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const RESULT_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const FEEDBACK_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> !UnwindSafe for GoalFeedbackStream<'a, A, GOAL_BUF, RESULT_BUF, FEEDBACK_BUF>

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.