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,
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,
pub fn set_write_timeout(&mut self, dur: Duration)
pub fn set_read_timeout(&mut self, dur: Duration)
pub async fn write_head( &mut self, head: EH, body_framing: BodyFraming, ) -> Result<(), IoError>
pub async fn write_body(&mut self, body: EncoderBody) -> Result<(), IoError>
pub async fn read_head(&mut self) -> Result<(DH, BodyFraming), IoError>
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>
impl<S, SLEEP, D, DH, E, EH> RefUnwindSafe for Http1Stream<S, SLEEP, D, DH, E, EH>where
S: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
SLEEP: RefUnwindSafe,
DH: RefUnwindSafe,
EH: RefUnwindSafe,
impl<S, SLEEP, D, DH, E, EH> Send for Http1Stream<S, SLEEP, D, DH, E, EH>
impl<S, SLEEP, D, DH, E, EH> Sync for Http1Stream<S, SLEEP, D, DH, E, EH>
impl<S, SLEEP, D, DH, E, EH> Unpin for Http1Stream<S, SLEEP, D, DH, E, EH>
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> 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