[][src]Struct seal_rs::actors::actor_ref::ActorRef

pub struct ActorRef {
    pub cell: TSafe<ActorCell>,
    pub path: TSafe<ActorPath>,
}

Fields

cell: TSafe<ActorCell>path: TSafe<ActorPath>

Methods

impl ActorRef[src]

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

Creates a new reference. This method should never be invoked by application code. This constructor is used by internal API. Direct use from the user code is prohibited.

pub fn tell(
    &mut self,
    msg: Box<dyn Any + Send + 'static>,
    rself: Option<ActorRef>
)
[src]

Send message to the actor behind the reference. In the first argument passed message for send, and in the second argument specified sender reference. This reference will be injected to ctx.sender field the actor context object. If sender was does not specified, ctx.sender will be filled with the deadLetter actor reference. Setting up None as sender reference is useful in case, when tell operation is called from outside of the actor system.

Examples

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

Return copy of the actor path object

Trait Implementations

impl Eq for ActorRef[src]

impl PartialEq<ActorRef> for ActorRef[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Clone for ActorRef[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Display for ActorRef[src]

Auto Trait Implementations

impl Send for ActorRef

impl Sync for ActorRef

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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