#[non_exhaustive]pub enum HttpOobiError {
InvalidUrl(String),
InsecureScheme(String),
BlockedHost(String),
Request(String),
NotFound,
Gone,
RateLimited,
ServerPrefixMismatch,
UnexpectedStatus(u16),
Oversized(usize),
Malformed(String),
}Expand description
Errors fetching a KEL over HTTP from an OOBI endpoint.
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.
InvalidUrl(String)
The base URL or constructed OOBI URL is malformed.
InsecureScheme(String)
The URL scheme is not https (SSRF guard; bypassed only when private
hosts are explicitly allowed).
BlockedHost(String)
The target host is loopback / private / link-local (SSRF guard).
Request(String)
The HTTP request itself failed (DNS, connect, TLS, timeout).
NotFound
404 — the host serves no KEL for this identifier.
Gone
410 — the identity is gone (revoked/abandoned at the host).
RateLimited
429 — rate limited.
ServerPrefixMismatch
422 — the server itself reported a prefix mismatch.
UnexpectedStatus(u16)
Any other non-success status.
Oversized(usize)
The response exceeded the size cap.
Malformed(String)
The body was not a parseable KEL.
Trait Implementations§
Source§impl Debug for HttpOobiError
impl Debug for HttpOobiError
Source§impl Display for HttpOobiError
impl Display for HttpOobiError
Source§impl Error for HttpOobiError
impl Error for HttpOobiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for HttpOobiError
impl RefUnwindSafe for HttpOobiError
impl Send for HttpOobiError
impl Sync for HttpOobiError
impl Unpin for HttpOobiError
impl UnsafeUnpin for HttpOobiError
impl UnwindSafe for HttpOobiError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.