Struct r2r::ActionServerGoalRequest
source · pub struct ActionServerGoalRequest<T>where
T: WrappedActionTypeSupport,{
pub uuid: Uuid,
pub goal: T::Goal,
/* private fields */
}
Expand description
Request to the action server to accept a new Goal
.
Fields§
§uuid: Uuid
§goal: T::Goal
Implementations§
source§impl<T> ActionServerGoalRequest<T>where
T: WrappedActionTypeSupport + 'static,
impl<T> ActionServerGoalRequest<T>where
T: WrappedActionTypeSupport + 'static,
sourcepub fn accept(
self,
) -> Result<(ActionServerGoal<T>, impl Stream<Item = ActionServerCancelRequest> + Unpin)>
pub fn accept( self, ) -> Result<(ActionServerGoal<T>, impl Stream<Item = ActionServerCancelRequest> + Unpin)>
Accept the goal request and become a ServerGoal. Returns a handle to the goal and a stream on which cancel requests can be received.
Trait Implementations§
impl<T> Send for ActionServerGoalRequest<T>where
T: WrappedActionTypeSupport,
Auto Trait Implementations§
impl<T> Freeze for ActionServerGoalRequest<T>
impl<T> !RefUnwindSafe for ActionServerGoalRequest<T>
impl<T> !Sync for ActionServerGoalRequest<T>
impl<T> Unpin for ActionServerGoalRequest<T>
impl<T> !UnwindSafe for ActionServerGoalRequest<T>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more