Struct actix::ActorResponse [−][src]
A helper type for representing different types of message responses.
Implementations
impl<A: Actor, I> ActorResponse<A, I>
[src]
pub fn reply(val: I) -> Self
[src]
Creates a response.
pub fn async<T>(fut: T) -> Self where
T: ActorFuture<A, Output = I> + 'static,
[src]
T: ActorFuture<A, Output = I> + 'static,
Creates an asynchronous response.
Trait Implementations
impl<A, I> Debug for ActorResponse<A, I>
[src]
impl<A, M> MessageResponse<A, M> for ActorResponse<A, M::Result> where
A: Actor,
M: Message,
A::Context: AsyncContext<A>,
[src]
A: Actor,
M: Message,
A::Context: AsyncContext<A>,
Auto Trait Implementations
impl<A, I> !RefUnwindSafe for ActorResponse<A, I>
impl<A, I> !Send for ActorResponse<A, I>
impl<A, I> !Sync for ActorResponse<A, I>
impl<A, I> Unpin for ActorResponse<A, I> where
I: Unpin,
I: Unpin,
impl<A, I> !UnwindSafe for ActorResponse<A, I>
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, 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>,