pub struct FetchResponse {
pub body: BodyStream,
pub headers: Headers,
}Expand description
Response from a fetch — headers available immediately, body as async stream.
Fields§
§body: BodyStreamBody as an async byte stream.
headers: HeadersHTTP response headers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FetchResponse
impl !RefUnwindSafe for FetchResponse
impl Send for FetchResponse
impl !Sync for FetchResponse
impl Unpin for FetchResponse
impl UnsafeUnpin for FetchResponse
impl !UnwindSafe for FetchResponse
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