pub enum Retrieval<'a> {
Response {
status: u16,
body: Option<&'a [u8]>,
},
Failed,
}Expand description
What one HTTPS GET of a document gave, as the caller’s HTTP client saw it.
Variants§
Response
A response: its status and body (None when there was none).
Failed
No response: a network, DNS, TLS or timeout failure, a redirect, or a retrieval the client abandoned.
Trait Implementations§
impl<'a> Copy for Retrieval<'a>
impl<'a> Eq for Retrieval<'a>
impl<'a> StructuralPartialEq for Retrieval<'a>
Auto Trait Implementations§
impl<'a> Freeze for Retrieval<'a>
impl<'a> RefUnwindSafe for Retrieval<'a>
impl<'a> Send for Retrieval<'a>
impl<'a> Sync for Retrieval<'a>
impl<'a> Unpin for Retrieval<'a>
impl<'a> UnsafeUnpin for Retrieval<'a>
impl<'a> UnwindSafe for Retrieval<'a>
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