pub struct ReusedHttpStream { /* private fields */ }Implementations§
Source§impl ReusedHttpStream
impl ReusedHttpStream
pub fn new( stream: Stream, persistent_settings: Option<HttpPersistentSettings>, ) -> Self
Sourcepub fn from_reusable_stream(
reusable: ReusableHttpStream,
persistent_settings: HttpPersistentSettings,
) -> Self
pub fn from_reusable_stream( reusable: ReusableHttpStream, persistent_settings: HttpPersistentSettings, ) -> Self
Build a reusable HTTP stream from a finished session, preserving any pipelined prefix bytes in the persistent settings for the next request.
pub fn consume(self) -> (Stream, Option<HttpPersistentSettings>)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReusedHttpStream
impl !UnwindSafe for ReusedHttpStream
impl Freeze for ReusedHttpStream
impl Send for ReusedHttpStream
impl Sync for ReusedHttpStream
impl Unpin for ReusedHttpStream
impl UnsafeUnpin for ReusedHttpStream
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