pub enum ResponseFuture<Req, Resp, Exec> {
Init(Exec, Req, *const ()),
Executed(SlotReader<Resp, (Req, Vec<u8>)>),
Fused,
}
Variants§
Implementations§
Source§impl<Req, Resp, Exec> ResponseFuture<Req, Resp, Exec>
impl<Req, Resp, Exec> ResponseFuture<Req, Resp, Exec>
pub fn new(exec: Exec, req: Req, callback: *const ()) -> Self
pub fn new_without_req( exec: Exec, req: Req, callback: *const (), ) -> ResponseFutureWithoutReq<Req, Resp, Exec> ⓘ
Trait Implementations§
Source§impl<Req, Resp, Exec> Future for ResponseFuture<Req, Resp, Exec>
impl<Req, Resp, Exec> Future for ResponseFuture<Req, Resp, Exec>
impl<Req: Send, Resp: Send, Exec> Send for ResponseFuture<Req, Resp, Exec>
impl<Req: Sync, Resp: Sync, Exec> Sync for ResponseFuture<Req, Resp, Exec>
Auto Trait Implementations§
impl<Req, Resp, Exec> Freeze for ResponseFuture<Req, Resp, Exec>
impl<Req, Resp, Exec> RefUnwindSafe for ResponseFuture<Req, Resp, Exec>
impl<Req, Resp, Exec> Unpin for ResponseFuture<Req, Resp, Exec>
impl<Req, Resp, Exec> UnwindSafe for ResponseFuture<Req, Resp, Exec>
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more