[−][src]Struct act_zero::Addr
Strong reference to an actor. This will not prevent the actor from stopping of its own volition, but the actor will not be automatically stopped as long as a strong reference still exists. If the actor has stopped, messages sent to the actor will be dropped.
Implementations
impl<T: ?Sized> Addr<T>
[src]
pub fn upcast<U: ?Sized + UpcastFrom<T>>(self) -> Addr<U>
[src]
Upcast this actor reference to a trait object (Addr<dyn ActorTrait>
)
pub fn downgrade(&self) -> WeakAddr<T>
[src]
Downgrade to a weak reference.
Trait Implementations
impl<T: ?Sized> Clone for Addr<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + ?Sized> Debug for Addr<T>
[src]
impl<T: ?Sized> Default for Addr<T>
[src]
impl<M: Send + 'static, T: Handle<M>> Handle<M> for Addr<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Addr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T: ?Sized> Send for Addr<T> where
T: Send + Sync,
T: Send + Sync,
impl<T: ?Sized> Sync for Addr<T> where
T: Send + Sync,
T: Send + Sync,
impl<T: ?Sized> Unpin for Addr<T>
impl<T: ?Sized> UnwindSafe for Addr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, E> IntoResult<T, E> for T
[src]
fn into_result(Self) -> Result<T, E>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,