pub(crate) struct Answer {
pub uri: Uri,
pub total: Option<u64>,
pub starts_at: u64,
pub partial: bool,
}Expand description
What a server said about the file before its body.
Fields§
§uri: UriThe address the body came from, after any redirects.
total: Option<u64>The whole file’s length, when the server said.
starts_at: u64Where in the file the body starts: 0, unless the server sent only part of it.
partial: boolWhether the server sent part of the file, as 206 Partial Content, which says it
can send any part asked for.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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