[−][src]Struct actix::ActorResponse
A helper type for representing different types of message responses.
Methods
impl<A: Actor, I, E> ActorResponse<A, I, E>
[src]
pub fn reply(val: Result<I, E>) -> Self
[src]
Creates a response.
pub fn async<T>(fut: T) -> Self where
T: ActorFuture<Output = Result<I, E>, Actor = A> + 'static,
[src]
T: ActorFuture<Output = Result<I, E>, Actor = A> + 'static,
Creates an asynchronous response.
Trait Implementations
impl<A, I, E> Debug for ActorResponse<A, I, E>
[src]
impl<A, M, I: 'static, E: 'static> MessageResponse<A, M> for ActorResponse<A, I, E> where
A: Actor,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,
[src]
A: Actor,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,
fn handle<R: ResponseChannel<M>>(self, ctx: &mut A::Context, tx: Option<R>)
[src]
Auto Trait Implementations
impl<A, I, E> !RefUnwindSafe for ActorResponse<A, I, E>
impl<A, I, E> !Send for ActorResponse<A, I, E>
impl<A, I, E> !Sync for ActorResponse<A, I, E>
impl<A, I, E> Unpin for ActorResponse<A, I, E> where
E: Unpin,
I: Unpin,
E: Unpin,
I: Unpin,
impl<A, I, E> !UnwindSafe for ActorResponse<A, I, E>
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,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,