pub enum RegistrarError {
Unavailable(String),
Refused {
status: u16,
},
Malformed(String),
Document(ClientIdError),
}Expand description
Why a registration request did not produce a client.
Transport-neutral on purpose: the adapter maps its HTTP client and its JSON
parser into these, and nothing in application/ names either.
Variants§
The request could not be completed.
Refused
The server answered with a non-success status.
Malformed(String)
The response was not a registration response this crate can use.
Document(ClientIdError)
A metadata document failed the check that makes it usable.
Trait Implementations§
Source§impl Clone for RegistrarError
impl Clone for RegistrarError
Source§impl Debug for RegistrarError
impl Debug for RegistrarError
Source§impl Display for RegistrarError
impl Display for RegistrarError
impl Eq for RegistrarError
Source§impl Error for RegistrarError
impl Error for RegistrarError
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()
Source§impl From<ClientIdError> for RegistrarError
impl From<ClientIdError> for RegistrarError
Source§fn from(source: ClientIdError) -> Self
fn from(source: ClientIdError) -> Self
Converts to this type from the input type.
Source§impl From<RegistrarError> for RegistrationError
impl From<RegistrarError> for RegistrationError
Source§fn from(source: RegistrarError) -> Self
fn from(source: RegistrarError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RegistrarError
impl PartialEq for RegistrarError
impl StructuralPartialEq for RegistrarError
Auto Trait Implementations§
impl Freeze for RegistrarError
impl RefUnwindSafe for RegistrarError
impl Send for RegistrarError
impl Sync for RegistrarError
impl Unpin for RegistrarError
impl UnsafeUnpin for RegistrarError
impl UnwindSafe for RegistrarError
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