pub enum WebdavAuth {
None,
Basic(HttpAuthBasic),
Bearer(HttpAuthBearer),
}Expand description
Authentication scheme used by the WebDAV client.
Covers the three modes the CalDAV/CardDAV deployments handle in
practice: no auth, HTTP Basic (RFC 7617) and HTTP Bearer (RFC 6750),
reusing the io-http credential types. Higher-level coroutines never
observe the credential directly; they only see the pre-formatted
header value from emit_header.
Variants§
None
No authentication; no Authorization header is emitted.
Basic(HttpAuthBasic)
HTTP Basic authentication (RFC 7617).
Bearer(HttpAuthBearer)
HTTP Bearer authentication (RFC 6750).
Trait Implementations§
Source§impl Clone for WebdavAuth
impl Clone for WebdavAuth
Source§fn clone(&self) -> WebdavAuth
fn clone(&self) -> WebdavAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebdavAuth
impl Debug for WebdavAuth
Source§impl Default for WebdavAuth
impl Default for WebdavAuth
Source§fn default() -> WebdavAuth
fn default() -> WebdavAuth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebdavAuth
impl RefUnwindSafe for WebdavAuth
impl Send for WebdavAuth
impl Sync for WebdavAuth
impl Unpin for WebdavAuth
impl UnsafeUnpin for WebdavAuth
impl UnwindSafe for WebdavAuth
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