pub enum GetProfileError<E: Debug + Display> {
ProfileDecode(DecodeError),
AuthWrapperDecode(DecodeError),
Body(Error),
Service(E),
UnexpectedStatusCode(u16),
}Expand description
Error associated with getting a Profile from a relay server.
Variants§
ProfileDecode(DecodeError)
Error while decoding the Profile
AuthWrapperDecode(DecodeError)
Error while decoding the AuthWrapper.
Body(Error)
Error while processing the body.
Service(E)
A connection error occured.
UnexpectedStatusCode(u16)
Unexpected status code.
Trait Implementations§
Source§impl<E> Display for GetProfileError<E>
impl<E> Display for GetProfileError<E>
Source§impl<E: Debug + Display> Error for GetProfileError<E>
impl<E: Debug + Display> Error for GetProfileError<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> !RefUnwindSafe for GetProfileError<E>
impl<E> !UnwindSafe for GetProfileError<E>
impl<E> Freeze for GetProfileError<E>where
E: Freeze,
impl<E> Send for GetProfileError<E>where
E: Send,
impl<E> Sync for GetProfileError<E>where
E: Sync,
impl<E> Unpin for GetProfileError<E>where
E: Unpin,
impl<E> UnsafeUnpin for GetProfileError<E>where
E: UnsafeUnpin,
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