Struct flo_state::Addr [−][src]
pub struct Addr<S> { /* fields omitted */ }
Implementations
impl<S> Addr<S>
[src]
impl<S> Addr<S>
[src]pub fn recipient<M>(self) -> Recipient<M> where
S: Handler<M> + 'static,
M: Message,
[src]
S: Handler<M> + 'static,
M: Message,
pub async fn send<M>(&self, message: M) -> Result<M::Result> where
M: Message + Send + 'static,
S: Handler<M>,
[src]
pub async fn send<M>(&self, message: M) -> Result<M::Result> where
M: Message + Send + 'static,
S: Handler<M>,
[src]Sends a message to the actor and wait for the result
pub async fn send_timeout<M>(
&self,
timeout: Duration,
message: M
) -> Result<M::Result> where
M: Message + Send + 'static,
S: Handler<M>,
[src]
pub async fn send_timeout<M>(
&self,
timeout: Duration,
message: M
) -> Result<M::Result> where
M: Message + Send + 'static,
S: Handler<M>,
[src]Sends a message to the actor and wait for the result, but only for a limited time.
Trait Implementations
Auto Trait Implementations
impl<S> !RefUnwindSafe for Addr<S>
impl<S> Send for Addr<S> where
S: Send,
S: Send,
impl<S> Sync for Addr<S> where
S: Send,
S: Send,
impl<S> Unpin for Addr<S>
impl<S> !UnwindSafe for Addr<S>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more