pub struct ProtoHttp1ClientMakeLayer<Svc>where
Svc: Service<(ReadHalf<SimplexStream>, WriteHalf<SimplexStream>), Response = ()> + Send + Clone,{ /* private fields */ }Expand description
This is the initializer for the layer. Invocations to the service will take the sender and receiver of the connection and process the full lifetime.
Implementations§
Source§impl<Svc> ProtoHttp1ClientMakeLayer<Svc>where
Svc: Service<(ReadHalf<SimplexStream>, WriteHalf<SimplexStream>), Response = ()> + Send + Clone,
impl<Svc> ProtoHttp1ClientMakeLayer<Svc>where
Svc: Service<(ReadHalf<SimplexStream>, WriteHalf<SimplexStream>), Response = ()> + Send + Clone,
Sourcepub fn new(config: ProtoHttp1ClientConfig) -> Self
pub fn new(config: ProtoHttp1ClientConfig) -> Self
Create a new instance of the layer
Trait Implementations§
Source§impl<Svc> Layer<Svc> for ProtoHttp1ClientMakeLayer<Svc>where
Svc: Service<(ReadHalf<SimplexStream>, WriteHalf<SimplexStream>), Response = ()> + Send + Clone,
impl<Svc> Layer<Svc> for ProtoHttp1ClientMakeLayer<Svc>where
Svc: Service<(ReadHalf<SimplexStream>, WriteHalf<SimplexStream>), Response = ()> + Send + Clone,
Auto Trait Implementations§
impl<Svc> Freeze for ProtoHttp1ClientMakeLayer<Svc>
impl<Svc> RefUnwindSafe for ProtoHttp1ClientMakeLayer<Svc>where
Svc: RefUnwindSafe,
impl<Svc> Send for ProtoHttp1ClientMakeLayer<Svc>
impl<Svc> Sync for ProtoHttp1ClientMakeLayer<Svc>where
Svc: Sync,
impl<Svc> Unpin for ProtoHttp1ClientMakeLayer<Svc>where
Svc: Unpin,
impl<Svc> UnwindSafe for ProtoHttp1ClientMakeLayer<Svc>where
Svc: 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