Struct actix_web::actix::ActorResponse
source · pub struct ActorResponse<A, I, E> { /* private fields */ }
Expand description
Helper type for representing different type of message responses
Implementations
sourceimpl<A, I, E> ActorResponse<A, I, E>where
A: Actor,
impl<A, I, E> ActorResponse<A, I, E>where
A: Actor,
sourcepub fn reply(val: Result<I, E>) -> ActorResponse<A, I, E>
pub fn reply(val: Result<I, E>) -> ActorResponse<A, I, E>
Create response
sourcepub fn async<T>(fut: T) -> ActorResponse<A, I, E>where
T: 'static + ActorFuture<Item = I, Error = E, Actor = A>,
pub fn async<T>(fut: T) -> ActorResponse<A, I, E>where
T: 'static + ActorFuture<Item = I, Error = E, Actor = A>,
Create async response
Trait Implementations
sourceimpl<A, I, E> Debug for ActorResponse<A, I, E>
impl<A, I, E> Debug for ActorResponse<A, I, E>
sourceimpl<A, M, I, E> MessageResponse<A, M> for ActorResponse<A, I, E>where
I: 'static,
E: 'static,
A: Actor,
M: Message<Result = Result<I, E>>,
<A as Actor>::Context: AsyncContext<A>,
impl<A, M, I, E> MessageResponse<A, M> for ActorResponse<A, I, E>where
I: 'static,
E: 'static,
A: Actor,
M: Message<Result = Result<I, E>>,
<A as Actor>::Context: AsyncContext<A>,
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,
impl<A, I, E> !UnwindSafe for ActorResponse<A, I, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more