pub struct CheckSupport<'a> { /* private fields */ }Expand description
Request to check if a server advertises support for a specific protocol extension.
Sends an OPTIONS request to the specified URI and checks if the DAV: header
contains the expected value.
§Example
let uri = Uri::from_static("/");
let response = webdav.request(
CheckSupport::new(&uri, "calendar-access")
).await?;Implementations§
Trait Implementations§
Source§impl DavRequest for CheckSupport<'_>
impl DavRequest for CheckSupport<'_>
Source§type ParseError = CheckSupportParseError
type ParseError = CheckSupportParseError
The error type returned when parsing the response of this request. Read more
Source§type Error<E> = CheckSupportError<E>
type Error<E> = CheckSupportError<E>
The complete error type for this request operation. Read more
Source§fn prepare_request(&self) -> Result<PreparedRequest, Error>
fn prepare_request(&self) -> Result<PreparedRequest, Error>
Prepare the HTTP request. Read more
Source§fn parse_response(
&self,
parts: &Parts,
_body: &[u8],
) -> Result<Self::Response, Self::ParseError>
fn parse_response( &self, parts: &Parts, _body: &[u8], ) -> Result<Self::Response, Self::ParseError>
Parse the HTTP response. Read more
Auto Trait Implementations§
impl<'a> Freeze for CheckSupport<'a>
impl<'a> RefUnwindSafe for CheckSupport<'a>
impl<'a> Send for CheckSupport<'a>
impl<'a> Sync for CheckSupport<'a>
impl<'a> Unpin for CheckSupport<'a>
impl<'a> UnwindSafe for CheckSupport<'a>
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.