[−][src]Struct actix_web::actix::ActorResponse
Helper type for representing different type of message responses
Methods
impl<A, I, E> ActorResponse<A, I, E> where
A: Actor,
[src]
A: Actor,
pub fn reply(val: Result<I, E>) -> ActorResponse<A, I, E>
[src]
Create response
pub fn async<T>(fut: T) -> ActorResponse<A, I, E> where
T: ActorFuture<Item = I, Error = E, Actor = A> + 'static,
[src]
T: ActorFuture<Item = I, Error = E, Actor = A> + 'static,
Create async response
Trait Implementations
impl<A, I, E> Debug for ActorResponse<A, I, E>
[src]
impl<A, M, I, E> MessageResponse<A, M> for ActorResponse<A, I, E> where
A: Actor,
E: 'static,
I: 'static,
M: Message<Result = Result<I, E>>,
<A as Actor>::Context: AsyncContext<A>,
[src]
A: Actor,
E: 'static,
I: 'static,
M: Message<Result = Result<I, E>>,
<A as Actor>::Context: AsyncContext<A>,
Auto Trait Implementations
impl<A, I, E> !Send for ActorResponse<A, I, E>
impl<A, I, E> !Sync for ActorResponse<A, I, E>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.