#[non_exhaustive]pub enum RemoteFailure {
Status(u16),
ExceededLimit,
Timeout,
Redirect,
Unreachable,
}Expand description
Why a host’s fetch failed — a closed vocabulary, so the engine words every failure itself and no URL, host name, OS error or transport text can reach a client (the no-leak rule of ADR-0081).
Non-exhaustive: a later decision may add a reason (a host the policy refuses), and a host only ever constructs these.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Status(u16)
The server answered with a non-success HTTP status.
ExceededLimit
The body was larger than the byte limit the engine passed.
Timeout
The request did not finish inside the host’s time bound.
Redirect
A redirect was refused: the hop bound was reached, or a hop would have
downgraded an https source to plaintext.
Unreachable
The source could not be reached or read: name resolution, connection, TLS, or a body that broke off.
Trait Implementations§
Source§impl Clone for RemoteFailure
impl Clone for RemoteFailure
impl Copy for RemoteFailure
Source§impl Debug for RemoteFailure
impl Debug for RemoteFailure
impl Eq for RemoteFailure
Source§impl PartialEq for RemoteFailure
impl PartialEq for RemoteFailure
impl StructuralPartialEq for RemoteFailure
Auto Trait Implementations§
impl Forget for RemoteFailure
impl Freeze for RemoteFailure
impl Move for RemoteFailure
impl RefUnwindSafe for RemoteFailure
impl Send for RemoteFailure
impl Sync for RemoteFailure
impl Unpin for RemoteFailure
impl UnsafeUnpin for RemoteFailure
impl UnwindSafe for RemoteFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.