Enum jsonrpsee_server::middleware::http::AuthorityError
source · pub enum AuthorityError {
InvalidUri(InvalidUri),
InvalidPort(String),
MissingHost,
}
Expand description
Error that can happen when parsing an URI authority fails.
Variants§
InvalidUri(InvalidUri)
Invalid URI.
InvalidPort(String)
Invalid port.
MissingHost
The host was not found.
Trait Implementations§
source§impl Debug for AuthorityError
impl Debug for AuthorityError
source§impl Display for AuthorityError
impl Display for AuthorityError
source§impl Error for AuthorityError
impl Error for AuthorityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 AuthorityError
impl RefUnwindSafe for AuthorityError
impl Send for AuthorityError
impl Sync for AuthorityError
impl Unpin for AuthorityError
impl UnwindSafe for AuthorityError
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