pub struct TrajectoryStore { /* private fields */ }Expand description
Storage for trajectories
Implementations§
Source§impl TrajectoryStore
impl TrajectoryStore
Sourcepub fn store(&self, trajectory: Trajectory)
pub fn store(&self, trajectory: Trajectory)
Store a trajectory
Sourcepub fn all(&self) -> Vec<Trajectory>
pub fn all(&self) -> Vec<Trajectory>
Get all trajectories
Sourcepub fn by_agent(&self, agent_name: &str) -> Vec<Trajectory>
pub fn by_agent(&self, agent_name: &str) -> Vec<Trajectory>
Get trajectories by agent
Sourcepub fn by_task_id(&self, task_id: &str) -> Option<Trajectory>
pub fn by_task_id(&self, task_id: &str) -> Option<Trajectory>
Get trajectory by task ID
Sourcepub fn failed(&self) -> Vec<Trajectory>
pub fn failed(&self) -> Vec<Trajectory>
Get failed trajectories
Trait Implementations§
Source§impl Default for TrajectoryStore
impl Default for TrajectoryStore
Source§fn default() -> TrajectoryStore
fn default() -> TrajectoryStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TrajectoryStore
impl RefUnwindSafe for TrajectoryStore
impl Send for TrajectoryStore
impl Sync for TrajectoryStore
impl Unpin for TrajectoryStore
impl UnsafeUnpin for TrajectoryStore
impl UnwindSafe for TrajectoryStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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