pub struct Request<'a, 'b: 'a, 'c> { /* private fields */ }
Implementations§
Methods from Deref<Target = HyperRequest<'a, 'b>>§
Sourcepub fn set_read_timeout(&self, timeout: Option<Duration>) -> Result<(), Error>
pub fn set_read_timeout(&self, timeout: Option<Duration>) -> Result<(), Error>
Set the read timeout of the underlying NetworkStream.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: NetworkStream,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: NetworkStream,
Get a reference to the underlying NetworkStream
.
Sourcepub fn ssl<T>(&self) -> Option<&T>where
T: NetworkStream,
pub fn ssl<T>(&self) -> Option<&T>where
T: NetworkStream,
Get a reference to the underlying Ssl stream, if connected over HTTPS.
This is actually just an alias for downcast_ref
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, 'c> Freeze for Request<'a, 'b, 'c>
impl<'a, 'b, 'c> !RefUnwindSafe for Request<'a, 'b, 'c>
impl<'a, 'b, 'c> Send for Request<'a, 'b, 'c>
impl<'a, 'b, 'c> !Sync for Request<'a, 'b, 'c>
impl<'a, 'b, 'c> Unpin for Request<'a, 'b, 'c>
impl<'a, 'b, 'c> !UnwindSafe for Request<'a, 'b, 'c>
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