Struct djinn::Agent
[−]
[src]
pub struct Agent<S: State> { pub id: u64, pub state: S, }
Struct containing a unique id and a state.
Fields
id: u64
state: S
Trait Implementations
impl<S: Decodable + State> Decodable for Agent<S>
[src]
fn decode<__DS: Decoder>(__arg_0: &mut __DS) -> Result<Agent<S>, __DS::Error>
Deserialize a value using a Decoder
.
impl<S: Encodable + State> Encodable for Agent<S>
[src]
fn encode<__SS: Encoder>(&self, __arg_0: &mut __SS) -> Result<(), __SS::Error>
Serialize a value using an Encoder
.
impl<S: Debug + State> Debug for Agent<S>
[src]
impl<S: PartialEq + State> PartialEq for Agent<S>
[src]
fn eq(&self, __arg_0: &Agent<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Agent<S>) -> bool
This method tests for !=
.
impl<S: Clone + State> Clone for Agent<S>
[src]
fn clone(&self) -> Agent<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more