[][src]Struct act_zero::remote::Remote

pub struct Remote<T>(_);

Generic actor proxy type. Implements the actor trait when T implements Handle<M> for the message type corresponding to that actor trait.

Implementations

impl<T> Remote<T>[src]

pub fn new(inner: T) -> Addr<Self>[src]

Construct an instance of the remote proxy. Typically the caller will then upcast() this actor ref into an Addr<dyn ActorTrait> to conceal the fact that this is a remote proxy.

pub fn inner(&self) -> &T[src]

Access the inner value.

Trait Implementations

impl<T: Debug> Debug for Remote<T>[src]

impl<'de, T> Deserialize<'de> for Remote<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for Remote<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Remote<T> where
    T: RefUnwindSafe

impl<T> Send for Remote<T> where
    T: Send

impl<T> Sync for Remote<T> where
    T: Sync

impl<T> Unpin for Remote<T> where
    T: Unpin

impl<T> UnwindSafe for Remote<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T, E> IntoResult<T, E> 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.