[−][src]Struct lwactors::ActorSender
Implementations
impl<A, R, E> ActorSender<A, R, E> where
A: Send + 'static,
R: Send + 'static,
E: Send + From<ActorError> + 'static,
[src]
A: Send + 'static,
R: Send + 'static,
E: Send + From<ActorError> + 'static,
pub fn invoke(&self, action: A) -> impl Future<Output = ActResult<R, E>>
[src]
Invokes a specific action on the actor. Returns a future that completes when the actor has performed the action.
Specifically not an async
function to allow it to be used correctly in a fire-and-forget
manner, although this is not advised.
Trait Implementations
impl<A, R, E> Clone for ActorSender<A, R, E>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug, R: Debug, E: Debug> Debug for ActorSender<A, R, E>
[src]
Auto Trait Implementations
impl<A, R, E> !RefUnwindSafe for ActorSender<A, R, E>
[src]
impl<A, R, E> Send for ActorSender<A, R, E> where
A: Send,
E: Send,
R: Send,
[src]
A: Send,
E: Send,
R: Send,
impl<A, R, E> Sync for ActorSender<A, R, E> where
A: Send,
E: Send,
R: Send,
[src]
A: Send,
E: Send,
R: Send,
impl<A, R, E> Unpin for ActorSender<A, R, E>
[src]
impl<A, R, E> !UnwindSafe for ActorSender<A, R, E>
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,