[][src]Struct sealrs::testkit::actors::test_local_actor_ref::TestLocalActorRef

pub struct TestLocalActorRef {
    pub cell: TSafe<ActorCell>,
    pub path: TSafe<ActorPath>,
    pub actor: TSafe<dyn Actor + Send>,
}

Fields

cell: TSafe<ActorCell>path: TSafe<ActorPath>actor: TSafe<dyn Actor + Send>

Original actor object on which this reference links

Methods

impl TestLocalActorRef[src]

pub fn new(cell: TSafe<ActorCell>, path: TSafe<ActorPath>) -> TestLocalActorRef[src]

Identical to original

Trait Implementations

impl AbstractActorRef for TestLocalActorRef[src]

fn tell(&mut self, msg: Message, rself: Option<&ActorRef>)[src]

Identical to original

fn ask(
    &mut self,
    factory: &mut dyn AbstractActorSystem,
    msg: Message
) -> WrappedFuture<Message, AskTimeoutError>
[src]

Identical to original

fn ask_timeout(
    &mut self,
    factory: &mut dyn AbstractActorSystem,
    timeout: Duration,
    msg: Message
) -> WrappedFuture<Message, AskTimeoutError>
[src]

Identical to original

fn path(&self) -> ActorPath[src]

Identical to original

fn cell(&mut self) -> TSafe<ActorCell>[src]

Identical to original

fn clone(&self) -> ActorRef[src]

Identical to original

fn as_any(&self) -> Box<dyn Any>[src]

Identical to original

impl PartialEq<TestLocalActorRef> for TestLocalActorRef[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for TestLocalActorRef[src]

impl Display for TestLocalActorRef[src]

impl Hash for TestLocalActorRef[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]