pub struct ActorResponse<A, I> { /* private fields */ }
Expand description
A helper type for representing different types of message responses.
Implementations§
Source§impl<A: Actor, I> ActorResponse<A, I>
impl<A: Actor, I> ActorResponse<A, I>
Sourcepub fn async<T>(fut: T) -> Selfwhere
T: ActorFuture<A, Output = I> + 'static,
pub fn async<T>(fut: T) -> Selfwhere
T: ActorFuture<A, Output = I> + 'static,
Creates an asynchronous response.
Trait Implementations§
Source§impl<A, I> Debug for ActorResponse<A, I>
impl<A, I> Debug for ActorResponse<A, I>
Source§impl<A: Actor, I> From<Pin<Box<dyn ActorFuture<A, Output = I>>>> for ActorResponse<A, I>
impl<A: Actor, I> From<Pin<Box<dyn ActorFuture<A, Output = I>>>> for ActorResponse<A, I>
Source§impl<A, M> MessageResponse<A, M> for ActorResponse<A, M::Result>
impl<A, M> MessageResponse<A, M> for ActorResponse<A, M::Result>
Auto Trait Implementations§
impl<A, I> Freeze for ActorResponse<A, I>where
I: Freeze,
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,
impl<A, I> !UnwindSafe for ActorResponse<A, I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more