pub enum GetMetadataError<E: Debug + Display> {
MetadataDecode(DecodeError),
AuthWrapperDecode(DecodeError),
AuthWrapperParse(ParseError),
AuthWrapperVerify(VerifyError),
Body(Error),
Service(E),
UnexpectedStatusCode(u16),
MissingToken,
}
Expand description
Error associated with getting AddressMetadata
from a keyserver.
Variants§
MetadataDecode(DecodeError)
Error while decoding the AddressMetadata
AuthWrapperDecode(DecodeError)
Error while decoding the AuthWrapper
.
AuthWrapperParse(ParseError)
Error while parsing the AuthWrapper
.
AuthWrapperVerify(VerifyError)
Error while parsing the AuthWrapper
.
Body(Error)
Error while processing the body.
Service(E)
A connection error occured.
UnexpectedStatusCode(u16)
Unexpected status code.
MissingToken
POP token missing from headers.
Trait Implementations§
Source§impl<E> Display for GetMetadataError<E>
impl<E> Display for GetMetadataError<E>
Source§impl<E: Debug + Display> Error for GetMetadataError<E>
impl<E: Debug + Display> Error for GetMetadataError<E>
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<E> Freeze for GetMetadataError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for GetMetadataError<E>
impl<E> Send for GetMetadataError<E>where
E: Send,
impl<E> Sync for GetMetadataError<E>where
E: Sync,
impl<E> Unpin for GetMetadataError<E>where
E: Unpin,
impl<E> !UnwindSafe for GetMetadataError<E>
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