pub struct Primed {
pub info: RemoteInfo,
pub body: Option<Response>,
pub body_len: u64,
}Expand description
What a priming probe learned, plus the response body it opened.
Fields§
§info: RemoteInfo§body: Option<Response>A live response whose body starts at byte 0, ready to be transferred
rather than discarded. None when the probe had to fall back and the
caller should issue ordinary requests for everything.
body_len: u64How many bytes body covers, counted from 0. The plan pins its first
range to exactly this so nothing is wasted and nothing is fetched twice.
Zero when there is no body.
Auto Trait Implementations§
impl !RefUnwindSafe for Primed
impl !UnwindSafe for Primed
impl Freeze for Primed
impl Send for Primed
impl Sync for Primed
impl Unpin for Primed
impl UnsafeUnpin for Primed
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