Struct r2r::ActionServerGoal
source · pub struct ActionServerGoal<T>where
T: WrappedActionTypeSupport,{
pub uuid: Uuid,
pub goal: T::Goal,
/* private fields */
}
Expand description
A handle to an active Goal
Fields§
§uuid: Uuid
§goal: T::Goal
Implementations§
source§impl<T> ActionServerGoal<T>where
T: WrappedActionTypeSupport + 'static,
impl<T> ActionServerGoal<T>where
T: WrappedActionTypeSupport + 'static,
pub fn is_cancelling(&self) -> Result<bool>
pub fn publish_feedback(&self, msg: T::Feedback) -> Result<()>where
T: WrappedActionTypeSupport,
pub fn cancel(&mut self, msg: T::Result) -> Result<()>
pub fn abort(&mut self, msg: T::Result) -> Result<()>
pub fn succeed(&mut self, msg: T::Result) -> Result<()>where
T: WrappedActionTypeSupport,
Trait Implementations§
source§impl<T> Clone for ActionServerGoal<T>
impl<T> Clone for ActionServerGoal<T>
source§fn clone(&self) -> ActionServerGoal<T>
fn clone(&self) -> ActionServerGoal<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T> Send for ActionServerGoal<T>where
T: WrappedActionTypeSupport,
Auto Trait Implementations§
impl<T> Freeze for ActionServerGoal<T>
impl<T> RefUnwindSafe for ActionServerGoal<T>
impl<T> !Sync for ActionServerGoal<T>
impl<T> Unpin for ActionServerGoal<T>
impl<T> UnwindSafe for ActionServerGoal<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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