pub struct Maker<NT, Request> { /* private fields */ }
Expand description
A factory that makes new Client
instances by creating new transports and wrapping them in
fresh Client
s.
Implementations§
Trait Implementations§
Source§impl<NT, Target, Request> Service<Target> for Maker<NT, Request>where
NT: MakeTransport<Target, Request>,
NT::Transport: 'static + Send + TagStore<Request, NT::Item>,
<NT::Transport as TagStore<Request, NT::Item>>::Tag: 'static + Send,
Request: 'static + Send,
NT::Item: 'static + Send,
NT::SinkError: 'static + Send + Sync,
NT::Error: 'static + Send + Sync,
NT::Future: 'static + Send,
impl<NT, Target, Request> Service<Target> for Maker<NT, Request>where
NT: MakeTransport<Target, Request>,
NT::Transport: 'static + Send + TagStore<Request, NT::Item>,
<NT::Transport as TagStore<Request, NT::Item>>::Tag: 'static + Send,
Request: 'static + Send,
NT::Item: 'static + Send,
NT::SinkError: 'static + Send + Sync,
NT::Error: 'static + Send + Sync,
NT::Future: 'static + Send,
Source§type Error = SpawnError<<NT as MakeTransport<Target, Request>>::MakeError>
type Error = SpawnError<<NT as MakeTransport<Target, Request>>::MakeError>
Errors produced by the service.
Source§type Response = Client<<NT as MakeTransport<Target, Request>>::Transport, Error<<NT as MakeTransport<Target, Request>>::Transport, Request>, Request>
type Response = Client<<NT as MakeTransport<Target, Request>>::Transport, Error<<NT as MakeTransport<Target, Request>>::Transport, Request>, Request>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Maker<NT, Request> as Service<Target>>::Response, <Maker<NT, Request> as Service<Target>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Maker<NT, Request> as Service<Target>>::Response, <Maker<NT, Request> as Service<Target>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<NT, Request> Freeze for Maker<NT, Request>where
NT: Freeze,
impl<NT, Request> RefUnwindSafe for Maker<NT, Request>where
NT: RefUnwindSafe,
impl<NT, Request> Send for Maker<NT, Request>where
NT: Send,
impl<NT, Request> Sync for Maker<NT, Request>where
NT: Sync,
impl<NT, Request> Unpin for Maker<NT, Request>where
NT: Unpin,
impl<NT, Request> UnwindSafe for Maker<NT, Request>where
NT: UnwindSafe,
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