pub enum Model {
AuthOnly,
Basic,
Reader,
Writer,
LatencyMeasurer,
}
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.
Reader
This model only performs read requests in a loop
Writer
This model only performs write requests in a loop
LatencyMeasurer
This model adds empty group to a sever and measures how long it takes before they are replicated to the other servers
Implementations§
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>,
impl Copy for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)