Struct Http1Stream

Source
pub struct Http1Stream<S, SLEEP, D, DH, E, EH>
where S: AsyncRead + AsyncWrite + Unpin, SLEEP: Sleepble, D: Http1StreamDecoder<S, SLEEP, DH>, DH: Head, E: Http1StreamEncoder<S, SLEEP, EH>, EH: Head,
{ /* private fields */ }

Implementations§

Source§

impl<S, SLEEP, D, DH, E, EH> Http1Stream<S, SLEEP, D, DH, E, EH>
where S: AsyncRead + AsyncWrite + Unpin, SLEEP: Sleepble, D: Http1StreamDecoder<S, SLEEP, DH>, DH: Head, E: Http1StreamEncoder<S, SLEEP, EH>, EH: Head,

Source

pub fn set_write_timeout(&mut self, dur: Duration)

Source

pub fn set_read_timeout(&mut self, dur: Duration)

Source

pub async fn write_head( &mut self, head: EH, body_framing: BodyFraming, ) -> Result<(), IoError>

Source

pub async fn write_body(&mut self, body: EncoderBody) -> Result<(), IoError>

Source

pub async fn read_head(&mut self) -> Result<(DH, BodyFraming), IoError>

Source

pub async fn read_body(&mut self) -> Result<DecoderBody, IoError>

Auto Trait Implementations§

§

impl<S, SLEEP, D, DH, E, EH> Freeze for Http1Stream<S, SLEEP, D, DH, E, EH>
where S: Freeze, D: Freeze, E: Freeze,

§

impl<S, SLEEP, D, DH, E, EH> RefUnwindSafe for Http1Stream<S, SLEEP, D, DH, E, EH>

§

impl<S, SLEEP, D, DH, E, EH> Send for Http1Stream<S, SLEEP, D, DH, E, EH>
where S: Send, D: Send, E: Send, SLEEP: Send, DH: Send, EH: Send,

§

impl<S, SLEEP, D, DH, E, EH> Sync for Http1Stream<S, SLEEP, D, DH, E, EH>
where S: Sync, D: Sync, E: Sync, SLEEP: Sync, DH: Sync, EH: Sync,

§

impl<S, SLEEP, D, DH, E, EH> Unpin for Http1Stream<S, SLEEP, D, DH, E, EH>
where D: Unpin, E: Unpin, SLEEP: Unpin, DH: Unpin, EH: Unpin,

§

impl<S, SLEEP, D, DH, E, EH> UnwindSafe for Http1Stream<S, SLEEP, D, DH, E, EH>
where S: UnwindSafe, D: UnwindSafe, E: UnwindSafe, SLEEP: UnwindSafe, DH: UnwindSafe, EH: 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, 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, 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.