pub struct DavMutationFailure { /* private fields */ }Expand description
One resource-level failure from a recursive COPY, MOVE, or DELETE operation.
Implementations§
Source§impl DavMutationFailure
impl DavMutationFailure
Sourcepub fn locked(path: DavPath, lock_path: DavPath) -> Self
pub fn locked(path: DavPath, lock_path: DavPath) -> Self
Creates a recursive mutation failure caused by an unsubmitted lock token.
Sourcepub fn status(path: DavPath, status: u16) -> Self
pub fn status(path: DavPath, status: u16) -> Self
Creates a recursive mutation failure with an explicit protocol status.
Sourcepub const fn status_code(&self) -> u16
pub const fn status_code(&self) -> u16
Returns the HTTP status associated with this resource failure.
Sourcepub fn lock_path(&self) -> Option<&DavPath>
pub fn lock_path(&self) -> Option<&DavPath>
Returns the lock root whose token was not submitted, when applicable.
Sourcepub fn to_multistatus_item(&self, prefix: &str) -> DavMultiStatusItem
pub fn to_multistatus_item(&self, prefix: &str) -> DavMultiStatusItem
Converts this typed failure into the shared Multi-Status response grammar.
Trait Implementations§
Source§impl Clone for DavMutationFailure
impl Clone for DavMutationFailure
Source§fn clone(&self) -> DavMutationFailure
fn clone(&self) -> DavMutationFailure
Returns a duplicate of the value. Read more
1.0.0 · 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 DavMutationFailure
impl Debug for DavMutationFailure
Source§impl PartialEq for DavMutationFailure
impl PartialEq for DavMutationFailure
impl Eq for DavMutationFailure
impl StructuralPartialEq for DavMutationFailure
Auto Trait Implementations§
impl Freeze for DavMutationFailure
impl RefUnwindSafe for DavMutationFailure
impl Send for DavMutationFailure
impl Sync for DavMutationFailure
impl Unpin for DavMutationFailure
impl UnwindSafe for DavMutationFailure
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.