pub struct AutoStream<CA, SA> {
pub conn_aux: CA,
pub peer: IpAddr,
pub protocol: Option<Protocol>,
pub req: Request<ReqResBuffer>,
pub stream_aux: SA,
}Available on crate feature
http only.Expand description
HTTP stream that is automatically managed by the system. In other words, all frames are gathered until an end-of-stream flag is received and only then a response is sent.
Fields§
§conn_aux: CAConnection auxiliary
peer: IpAddrRemote peer address
protocol: Option<Protocol>See Protocol.
req: Request<ReqResBuffer>Request
stream_aux: SAStream auxiliary
Trait Implementations§
Source§impl<CA, SA> OperationModeStream for AutoStream<CA, SA>
impl<CA, SA> OperationModeStream for AutoStream<CA, SA>
Source§const OM: OperationMode = OperationMode::Auto
const OM: OperationMode = OperationMode::Auto
Operation mode
Source§fn parts(
&mut self,
) -> (&mut Self::ConnAux, &mut Request<ReqResBuffer>, &mut Self::StreamAux)
fn parts( &mut self, ) -> (&mut Self::ConnAux, &mut Request<ReqResBuffer>, &mut Self::StreamAux)
Remote peer address
Source§fn req(&mut self) -> &mut Request<ReqResBuffer>
fn req(&mut self) -> &mut Request<ReqResBuffer>
Request
Source§fn stream_aux(&mut self) -> &mut Self::StreamAux
fn stream_aux(&mut self) -> &mut Self::StreamAux
Stream auxiliary
Auto Trait Implementations§
impl<CA, SA> Freeze for AutoStream<CA, SA>
impl<CA, SA> RefUnwindSafe for AutoStream<CA, SA>where
CA: RefUnwindSafe,
SA: RefUnwindSafe,
impl<CA, SA> Send for AutoStream<CA, SA>
impl<CA, SA> Sync for AutoStream<CA, SA>
impl<CA, SA> Unpin for AutoStream<CA, SA>
impl<CA, SA> UnwindSafe for AutoStream<CA, SA>where
CA: UnwindSafe,
SA: 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