pub enum DavMethod {
Show 14 variants
Options,
Propfind,
Proppatch,
Get,
Head,
Put,
Mkcol,
Delete,
Copy,
Move,
Lock,
Unlock,
Report,
VersionControl,
}Expand description
WebDAV method recognized by the protocol layer.
Variants§
Implementations§
Source§impl DavMethod
impl DavMethod
Sourcepub fn from_method(method: &Method) -> Option<Self>
pub fn from_method(method: &Method) -> Option<Self>
Parses a supported HTTP/WebDAV method.
Sourcepub fn from_name(method: &str) -> Option<Self>
pub fn from_name(method: &str) -> Option<Self>
Parses a supported HTTP/WebDAV method name across transport implementations.
Sourcepub const fn operation(self) -> DavOperation
pub const fn operation(self) -> DavOperation
Returns the corresponding observable operation.
Sourcepub const fn body_policy(self) -> DavBodyPolicy
pub const fn body_policy(self) -> DavBodyPolicy
Returns the body handling contract for this method.
Trait Implementations§
impl Copy for DavMethod
impl Eq for DavMethod
impl StructuralPartialEq for DavMethod
Auto Trait Implementations§
impl Freeze for DavMethod
impl RefUnwindSafe for DavMethod
impl Send for DavMethod
impl Sync for DavMethod
impl Unpin for DavMethod
impl UnsafeUnpin for DavMethod
impl UnwindSafe for DavMethod
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.