pub enum CheckSupportError {
MissingHeader,
NotAdvertised,
HeaderNotAscii(ToStrError),
Request(RequestError),
InvalidInput(Error),
BadStatusCode(StatusCode),
}
Expand description
Error type for CalDavClient::check_support
and CardDavClient::check_support
.
Returned when checking support for a feature encounters an error.
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)
Error sending HTTP request.
InvalidInput(Error)
The provided URL is not acceptable.
BadStatusCode(StatusCode)
The server returned a non-success status code.
Trait Implementations§
source§impl Debug for CheckSupportError
impl Debug for CheckSupportError
source§impl Display for CheckSupportError
impl Display for CheckSupportError
source§impl Error for CheckSupportError
impl Error for CheckSupportError
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<Error> for CheckSupportError
impl From<Error> for CheckSupportError
source§impl From<RequestError> for CheckSupportError
impl From<RequestError> for CheckSupportError
source§fn from(source: RequestError) -> Self
fn from(source: RequestError) -> Self
Converts to this type from the input type.
source§impl From<StatusCode> for CheckSupportError
impl From<StatusCode> for CheckSupportError
source§fn from(status: StatusCode) -> Self
fn from(status: StatusCode) -> Self
Converts to this type from the input type.
source§impl From<ToStrError> for CheckSupportError
impl From<ToStrError> for CheckSupportError
source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CheckSupportError
impl !RefUnwindSafe for CheckSupportError
impl Send for CheckSupportError
impl Sync for CheckSupportError
impl Unpin for CheckSupportError
impl !UnwindSafe for CheckSupportError
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.