pub struct ActorBasic {
state: State,
randomised_backoff_time: Duration,
}
Fields§
§state: State
§randomised_backoff_time: Duration
Implementations§
source§impl ActorBasic
impl ActorBasic
pub fn new(cha_rng: ChaCha8Rng, warmup_time_ms: u64) -> Self
source§impl ActorBasic
impl ActorBasic
fn next_transition(&mut self, roles: &BTreeSet<ActorRole>) -> Transition
fn next_state(&mut self, action: TransitionAction, result: TransitionResult)
Trait Implementations§
source§impl ActorModel for ActorBasic
impl ActorModel for ActorBasic
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 ActorBasic
impl RefUnwindSafe for ActorBasic
impl Send for ActorBasic
impl Sync for ActorBasic
impl Unpin for ActorBasic
impl UnwindSafe for ActorBasic
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
Mutably borrows from an owned value. Read more