Skip to main content

AutoStream

Struct AutoStream 

Source
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: CA

Connection auxiliary

§peer: IpAddr

Remote peer address

§protocol: Option<Protocol>

See Protocol.

§req: Request<ReqResBuffer>

Request

§stream_aux: SA

Stream auxiliary

Trait Implementations§

Source§

impl<CA: Debug, SA: Debug> Debug for AutoStream<CA, SA>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<CA, SA> OperationModeStream for AutoStream<CA, SA>

Source§

const OM: OperationMode = OperationMode::Auto

Operation mode
Source§

type ConnAux = CA

Connection Auxiliary
Source§

type StreamAux = SA

Stream Auxiliary
Source§

fn conn_aux(&mut self) -> &mut Self::ConnAux

Connection auxiliary
Source§

fn parts( &mut self, ) -> (&mut Self::ConnAux, &mut Request<ReqResBuffer>, &mut Self::StreamAux)

Remote peer address
Source§

fn peer(&self) -> &IpAddr

Remote peer address
Source§

fn req(&mut self) -> &mut Request<ReqResBuffer>

Request
Source§

fn stream_aux(&mut self) -> &mut Self::StreamAux

Stream auxiliary

Auto Trait Implementations§

§

impl<CA, SA> Freeze for AutoStream<CA, SA>
where CA: Freeze, SA: Freeze,

§

impl<CA, SA> RefUnwindSafe for AutoStream<CA, SA>

§

impl<CA, SA> Send for AutoStream<CA, SA>
where CA: Send, SA: Send,

§

impl<CA, SA> Sync for AutoStream<CA, SA>
where CA: Sync, SA: Sync,

§

impl<CA, SA> Unpin for AutoStream<CA, SA>
where CA: Unpin, SA: Unpin,

§

impl<CA, SA> UnwindSafe for AutoStream<CA, SA>
where CA: UnwindSafe, SA: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more