Skip to main content

GoalResponse

Trait GoalResponse 

Source
pub trait GoalResponse:
    'static
    + Send
    + Sync {
    // Required methods
    fn is_accepted(&self) -> bool;
    fn get_time_stamp(&self) -> UnsafeTime;
    fn new(accepted: bool, stamp: UnsafeTime) -> Self;
}
Expand description

Trait for action goal response types.

Required Methods§

Source

fn is_accepted(&self) -> bool

Returns whether the goal was accepted.

Source

fn get_time_stamp(&self) -> UnsafeTime

Returns the timestamp of the response.

Source

fn new(accepted: bool, stamp: UnsafeTime) -> Self

Creates a new goal response with the given acceptance status and timestamp.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§