pub struct CheckerActor { /* private fields */ }Trait Implementations§
Source§impl Actor for CheckerActor
impl Actor for CheckerActor
Source§type Msg = CheckerMessage
type Msg = CheckerMessage
The type of messages sent and received by the actor. Read more
Source§type Timer = CheckerTimer
type Timer = CheckerTimer
The type for tagging timers. Read more
Source§type State = CheckerState
type State = CheckerState
The type of state maintained by the actor. Read more
Source§fn on_start(&self, id: Id, o: &mut Out<Self>) -> Self::State
fn on_start(&self, id: Id, o: &mut Out<Self>) -> Self::State
Indicates the initial state and commands.
Source§fn on_msg(
&self,
_id: Id,
state: &mut Cow<'_, Self::State>,
_src: Id,
msg: Self::Msg,
o: &mut Out<Self>,
)
fn on_msg( &self, _id: Id, state: &mut Cow<'_, Self::State>, _src: Id, msg: Self::Msg, o: &mut Out<Self>, )
Indicates the next state and commands when a message is received. See
Out::send.Source§fn on_timeout(
&self,
_id: Id,
state: &mut Cow<'_, Self::State>,
timer: &Self::Timer,
o: &mut Out<Self>,
)
fn on_timeout( &self, _id: Id, state: &mut Cow<'_, Self::State>, timer: &Self::Timer, o: &mut Out<Self>, )
Indicates the next state and commands when a timeout is encountered. See
Out::set_timer.fn name(&self) -> String
Source§impl Clone for CheckerActor
impl Clone for CheckerActor
Source§fn clone(&self) -> CheckerActor
fn clone(&self) -> CheckerActor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckerActor
impl Debug for CheckerActor
Source§impl Hash for CheckerActor
impl Hash for CheckerActor
Source§impl PartialEq for CheckerActor
impl PartialEq for CheckerActor
impl Eq for CheckerActor
impl StructuralPartialEq for CheckerActor
Auto Trait Implementations§
impl Freeze for CheckerActor
impl RefUnwindSafe for CheckerActor
impl Send for CheckerActor
impl Sync for CheckerActor
impl Unpin for CheckerActor
impl UnwindSafe for CheckerActor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.