[][src]Struct sealrs::actors::props::Props

pub struct Props {
    pub actor: TSafe<dyn Actor + Send>,
    pub dispatcher: String,
}

Fields

actor: TSafe<dyn Actor + Send>

User defined actor instance

dispatcher: String

Name of dispatcher on which actor must work

Methods

impl Props[src]

pub fn new(actor: TSafe<dyn Actor + Send>) -> Props[src]

pub fn with_dispatcher(self, name: &str) -> Props[src]

Sets dispatcher name on which the actor must work. By default exists two type of dispatchers: 'default' and 'pinned'. If you want to use other dispatchers types, you need register it's in the actor system.

Auto Trait Implementations

impl Sync for Props

impl Send for Props

impl Unpin for Props

impl RefUnwindSafe for Props

impl UnwindSafe for Props

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[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]