Struct djinn::Agent [] [src]

pub struct Agent<S: State> {
    pub id: u64,
    pub state: S,
}

Struct containing a unique id and a state.

Fields

Trait Implementations

impl<S: Decodable + State> Decodable for Agent<S>
[src]

Deserialize a value using a Decoder.

impl<S: Encodable + State> Encodable for Agent<S>
[src]

Serialize a value using an Encoder.

impl<S: Debug + State> Debug for Agent<S>
[src]

Formats the value using the given formatter.

impl<S: PartialEq + State> PartialEq for Agent<S>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S: Clone + State> Clone for Agent<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more