pub enum Model {
AuthOnly,
Basic,
}
Expand description
A model defines how an actors makes it’s choices. For example the choices could be purely random, they could be a linear pattern, or they could have some set of weights related to choices they make.
Some models can restrict the set of choices that an actor may make.
This compliments ActorRoles, which define the extended actions an Actor may choose to perform. If ActorRoles are present, the model MAY choose to use these roles to perform extended operations.
Variants§
AuthOnly
This is a “hardcoded” model that just authenticates and searches
Basic
A simple linear executor that does actions in a loop.
Implementations§
source§impl Model
impl Model
pub fn as_dyn_object(&self) -> Result<Box<dyn ActorModel + Send>, Error>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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