pub enum CheckSupportError<E> {
MissingHeader,
NotAdvertised,
HeaderNotAscii(ToStrError),
Request(RequestError<E>),
InvalidInput(Error),
BadStatusCode(StatusCode),
}Expand description
Error type for capability checking requests.
Used by dav::CheckSupport, caldav::CheckCalDavSupport,
and carddav::CheckCardDavSupport.
Variants§
MissingHeader
The DAV header was missing from the response received.
NotAdvertised
The server does not advertise the queried capability.
HeaderNotAscii(ToStrError)
Failed to parse the DAV header as a UTF-8 string.
Request(RequestError<E>)
Error sending HTTP request.
InvalidInput(Error)
The provided URL is not acceptable.
BadStatusCode(StatusCode)
Server returned a non-success status code.
Trait Implementations§
Source§impl<E: Debug> Debug for CheckSupportError<E>
impl<E: Debug> Debug for CheckSupportError<E>
Source§impl<E> Display for CheckSupportError<E>where
RequestError<E>: Display,
impl<E> Display for CheckSupportError<E>where
RequestError<E>: Display,
Source§impl<E> Error for CheckSupportError<E>
impl<E> Error for CheckSupportError<E>
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<E> From<CheckSupportParseError> for CheckSupportError<E>
impl<E> From<CheckSupportParseError> for CheckSupportError<E>
Source§fn from(error: CheckSupportParseError) -> Self
fn from(error: CheckSupportParseError) -> Self
Converts to this type from the input type.
Source§impl<E> From<Error> for CheckSupportError<E>
impl<E> From<Error> for CheckSupportError<E>
Source§impl<E> From<RequestError<E>> for CheckSupportError<E>
impl<E> From<RequestError<E>> for CheckSupportError<E>
Source§fn from(source: RequestError<E>) -> Self
fn from(source: RequestError<E>) -> Self
Converts to this type from the input type.
Source§impl<E> From<StatusCode> for CheckSupportError<E>
impl<E> From<StatusCode> for CheckSupportError<E>
Source§fn from(status: StatusCode) -> Self
fn from(status: StatusCode) -> Self
Converts to this type from the input type.
Source§impl<E> From<ToStrError> for CheckSupportError<E>
impl<E> From<ToStrError> for CheckSupportError<E>
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for CheckSupportError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for CheckSupportError<E>
impl<E> Send for CheckSupportError<E>where
E: Send,
impl<E> Sync for CheckSupportError<E>where
E: Sync,
impl<E> Unpin for CheckSupportError<E>where
E: Unpin,
impl<E> !UnwindSafe for CheckSupportError<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
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.