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§
Sourcefn is_accepted(&self) -> bool
fn is_accepted(&self) -> bool
Returns whether the goal was accepted.
Sourcefn get_time_stamp(&self) -> UnsafeTime
fn get_time_stamp(&self) -> UnsafeTime
Returns the timestamp of the response.
Sourcefn new(accepted: bool, stamp: UnsafeTime) -> Self
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.