pub struct RangeResponse {
pub status: u16,
pub headers: ResponseHeaders,
pub body: Box<dyn Read + Send>,
}Expand description
A response that is not a redirect, with its body unread.
Fields§
§status: u16The status code.
headers: ResponseHeadersThe headers read.
body: Box<dyn Read + Send>The body; dropping it drops the connection.
Auto Trait Implementations§
impl !RefUnwindSafe for RangeResponse
impl !Sync for RangeResponse
impl !UnwindSafe for RangeResponse
impl Forget for RangeResponse
impl Freeze for RangeResponse
impl Move for RangeResponse
impl Send for RangeResponse
impl Unpin for RangeResponse
impl UnsafeUnpin for RangeResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn Read + Send is !null: UnsafeUnpin,
PhantomData<dyn Read + Send>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more