[][src]Struct act_zero::WeakAddr

pub struct WeakAddr<T: ?Sized + 'static> { /* fields omitted */ }

A weak reference to a spawned actor.

Methods can be called on the actor after it has been spawned using the send!(...) and call!(...) macros.

Can be converted to the address of a trait-object using the upcast!(...) macro.

Implementations

impl<T: ?Sized> WeakAddr<T>[src]

pub fn detached() -> Self[src]

Create an address which does not refer to any actor.

impl<T: ?Sized + Send + 'static> WeakAddr<T>[src]

pub fn upgrade(&self) -> Addr<T>[src]

Upgrade this to a strong reference. If the actor has already stopped the returned address will be detached.

Trait Implementations

impl<T: Actor + ?Sized> AddrLike for WeakAddr<T>[src]

type Actor = T

Type of the actor reference by this address.

impl<T: Actor + ?Sized> AsAddr for WeakAddr<T>[src]

type Addr = Self

The inner address type

impl<T: ?Sized> Clone for WeakAddr<T>[src]

impl<T: ?Sized> Debug for WeakAddr<T>[src]

impl<T: ?Sized> Default for WeakAddr<T>[src]

impl<T: ?Sized> Eq for WeakAddr<T>[src]

impl<T: ?Sized> Hash for WeakAddr<T>[src]

impl<T: ?Sized> Ord for WeakAddr<T>[src]

impl<T: ?Sized, U: ?Sized> PartialEq<Addr<U>> for WeakAddr<T>[src]

impl<T: ?Sized, U: ?Sized> PartialEq<WeakAddr<U>> for Addr<T>[src]

impl<T: ?Sized, U: ?Sized> PartialEq<WeakAddr<U>> for WeakAddr<T>[src]

impl<T: ?Sized, U: ?Sized> PartialOrd<Addr<U>> for WeakAddr<T>[src]

impl<T: ?Sized, U: ?Sized> PartialOrd<WeakAddr<U>> for Addr<T>[src]

impl<T: ?Sized, U: ?Sized> PartialOrd<WeakAddr<U>> for WeakAddr<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for WeakAddr<T>[src]

impl<T: ?Sized> Send for WeakAddr<T>[src]

impl<T: ?Sized> Sync for WeakAddr<T>[src]

impl<T: ?Sized> Unpin for WeakAddr<T>[src]

impl<T> !UnwindSafe for WeakAddr<T>[src]

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.