pub struct Channel<Req, Resp> { /* private fields */ }
Expand description
Handles communication from the client to request dispatch.
Implementations§
Trait Implementations§
Source§impl<'a, Req, Resp> Client<'a, Req> for Channel<Req, Resp>where
Req: 'a,
Resp: 'a,
impl<'a, Req, Resp> Client<'a, Req> for Channel<Req, Resp>where
Req: 'a,
Resp: 'a,
Source§fn call(&'a mut self, ctx: Context, request: Req) -> Call<'a, Req, Resp> ⓘ
fn call(&'a mut self, ctx: Context, request: Req) -> Call<'a, Req, Resp> ⓘ
Initiates a request, sending it to the dispatch task. Read more
Source§fn map_response<F, R>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, R>(self, f: F) -> MapResponse<Self, F>
Returns a Client that applies a post-processing function to the returned response.
Source§fn with_request<F, Req2>(self, f: F) -> WithRequest<Self, F>
fn with_request<F, Req2>(self, f: F) -> WithRequest<Self, F>
Returns a Client that applies a pre-processing function to the request.
Auto Trait Implementations§
impl<Req, Resp> Freeze for Channel<Req, Resp>
impl<Req, Resp> !RefUnwindSafe for Channel<Req, Resp>
impl<Req, Resp> Send for Channel<Req, Resp>
impl<Req, Resp> Sync for Channel<Req, Resp>
impl<Req, Resp> Unpin for Channel<Req, Resp>
impl<Req, Resp> !UnwindSafe for Channel<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