pub struct Agent { /* private fields */ }Expand description
This class represent a TK agent
Implementations§
Source§impl Agent
impl Agent
Sourcepub fn new<TTransport, TDecision, TExecution>(
agent_data: AgentData,
transport_options: TTransport::Options,
decision_options: TDecision::Options,
executor_options: TExecution::Options,
) -> Result<Self>
pub fn new<TTransport, TDecision, TExecution>( agent_data: AgentData, transport_options: TTransport::Options, decision_options: TDecision::Options, executor_options: TExecution::Options, ) -> Result<Self>
Create a new agent with the given knowlege base and transport for the delegation
Sourcepub fn projection_ref(&self) -> &Projection
pub fn projection_ref(&self) -> &Projection
Return a reference to the projection used by this agent
Sourcepub fn states_ref(&self) -> &SharedStates
pub fn states_ref(&self) -> &SharedStates
Return a reference to the states of this agent
Sourcepub fn capabilities_ref(&self) -> &Capabilities
pub fn capabilities_ref(&self) -> &Capabilities
Return a reference to the capabilities of this agent
Auto Trait Implementations§
impl Freeze for Agent
impl !RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl !UnwindSafe for Agent
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