Struct orca::models::write::ActorWriter
source · pub struct ActorWriter {
state: State,
randomised_backoff_time: Duration,
}
Fields§
§state: State
§randomised_backoff_time: Duration
Implementations§
source§impl ActorWriter
impl ActorWriter
pub fn new(cha_rng: ChaCha8Rng, warmup_time_ms: u64) -> Self
source§impl ActorWriter
impl ActorWriter
fn next_transition(&mut self) -> Transition
fn next_state(&mut self, action: TransitionAction, result: TransitionResult)
Trait Implementations§
source§impl ActorModel for ActorWriter
impl ActorModel for ActorWriter
fn transition<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
client: &'life1 KanidmClient,
person: &'life2 Person,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventRecord>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ActorWriter
impl RefUnwindSafe for ActorWriter
impl Send for ActorWriter
impl Sync for ActorWriter
impl Unpin for ActorWriter
impl UnwindSafe for ActorWriter
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> 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
Mutably borrows from an owned value. Read more