pub enum DavEventOutcome {
Succeeded {
status: u16,
},
Failed {
status: u16,
backend_error: Option<DavBackendErrorKind>,
},
}Expand description
Protocol result exposed to observers without credentials, bodies, or lock tokens.
Variants§
Implementations§
Source§impl DavEventOutcome
impl DavEventOutcome
Sourcepub const fn from_status(
status: u16,
backend_error: Option<DavBackendErrorKind>,
) -> Self
pub const fn from_status( status: u16, backend_error: Option<DavBackendErrorKind>, ) -> Self
Classifies a completed response. Informational, success, and redirection statuses are successful protocol outcomes; client and server errors are failures.
Trait Implementations§
Source§impl Clone for DavEventOutcome
impl Clone for DavEventOutcome
Source§fn clone(&self) -> DavEventOutcome
fn clone(&self) -> DavEventOutcome
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 DavEventOutcome
impl Debug for DavEventOutcome
Source§impl PartialEq for DavEventOutcome
impl PartialEq for DavEventOutcome
Source§fn eq(&self, other: &DavEventOutcome) -> bool
fn eq(&self, other: &DavEventOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DavEventOutcome
impl Eq for DavEventOutcome
impl StructuralPartialEq for DavEventOutcome
Auto Trait Implementations§
impl Freeze for DavEventOutcome
impl RefUnwindSafe for DavEventOutcome
impl Send for DavEventOutcome
impl Sync for DavEventOutcome
impl Unpin for DavEventOutcome
impl UnsafeUnpin for DavEventOutcome
impl UnwindSafe for DavEventOutcome
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.