pub enum FetchResult {
Body(Vec<u8>),
Removed,
TooLarge,
Error(String),
}Expand description
Result of an unauthenticated body fetch.
Variants§
Body(Vec<u8>)
The body bytes (already bounded to max_bytes by the fetcher).
Removed
The resource returned 404/410 — its author deleted it.
TooLarge
The resource exceeded max_bytes.
Error(String)
A network/timeout/other error (the message is for diagnostics).
Trait Implementations§
Source§impl Clone for FetchResult
impl Clone for FetchResult
Source§fn clone(&self) -> FetchResult
fn clone(&self) -> FetchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FetchResult
impl RefUnwindSafe for FetchResult
impl Send for FetchResult
impl Sync for FetchResult
impl Unpin for FetchResult
impl UnsafeUnpin for FetchResult
impl UnwindSafe for FetchResult
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