pub struct AgentActionTicket<E, M: Model<E>> { /* private fields */ }Implementations§
Source§impl<E, M: Model<E>> AgentActionTicket<E, M>
impl<E, M: Model<E>> AgentActionTicket<E, M>
pub fn issue(continuation: AgentContinuation<E, M>) -> Self
pub fn execute(&self) -> Option<AgentContinuation<E, M>>
pub fn inspect<R, F>(&self, f: F) -> Option<R>where
F: FnOnce(&AgentContinuation<E, M>) -> R,
Trait Implementations§
Auto Trait Implementations§
impl<E, M> !Freeze for AgentActionTicket<E, M>
impl<E, M> !RefUnwindSafe for AgentActionTicket<E, M>
impl<E, M> !Send for AgentActionTicket<E, M>
impl<E, M> !Sync for AgentActionTicket<E, M>
impl<E, M> Unpin for AgentActionTicket<E, M>
impl<E, M> UnsafeUnpin for AgentActionTicket<E, M>
impl<E, M> !UnwindSafe for AgentActionTicket<E, M>
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