pub struct RequestClient<Req, Resp> { /* private fields */ }
Implementations§
Source§impl<Req: Owned, Resp: Owned> RequestClient<Req, Resp>
impl<Req: Owned, Resp: Owned> RequestClient<Req, Resp>
pub async fn call<LikeReq>(&self, payload: LikeReq) -> Respwhere
LikeReq: Compatible<Req>,
pub fn subscribe( &self, request_subscription: impl AsyncFnMut(EndpointAddr, Req::Lazy<'_>, ResponseWaiter<Resp>) + Clone + 'static, )
Trait Implementations§
Auto Trait Implementations§
impl<Req, Resp> Freeze for RequestClient<Req, Resp>
impl<Req, Resp> !RefUnwindSafe for RequestClient<Req, Resp>
impl<Req, Resp> !Send for RequestClient<Req, Resp>
impl<Req, Resp> !Sync for RequestClient<Req, Resp>
impl<Req, Resp> Unpin for RequestClient<Req, Resp>
impl<Req, Resp> !UnwindSafe for RequestClient<Req, Resp>
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