pub struct DavCapabilitySnapshot { /* private fields */ }Expand description
Immutable capability state consumed by discovery, dispatch and property planning.
Implementations§
Source§impl DavCapabilitySnapshot
impl DavCapabilitySnapshot
pub fn declaration(&self) -> &DavCapabilityDeclaration
pub const fn methods(&self) -> DavMethodSet
pub const fn supported_methods(&self) -> DavMethodSet
pub const fn allows(&self, method: DavMethod) -> bool
pub const fn supports(&self, method: DavMethod) -> bool
Sourcepub const fn dispatches(&self, method: DavMethod) -> bool
pub const fn dispatches(&self, method: DavMethod) -> bool
Returns whether the protocol engine should dispatch this method for target-state handling.
pub const fn extensions(&self) -> DavExtensionSet
pub const fn supports_extension(&self, package: DavExtensionPackage) -> bool
pub const fn supports_live_property(&self, property: DavLiveProperty) -> bool
pub const fn supports_report(&self, report: DavReportType) -> bool
pub const fn preferences(&self) -> DavPreferenceSet
pub fn allow_header(&self) -> &HeaderValue
pub fn dav_header(&self) -> Option<&HeaderValue>
pub fn dasl_header(&self) -> Option<&HeaderValue>
pub fn accept_patch_header(&self) -> Option<&HeaderValue>
pub const fn writes(&self) -> DavWriteCapabilities
Sourcepub fn body_policy(
&self,
method: DavMethod,
xml_limit: usize,
) -> Result<Option<DavBodyPolicy>, DavMethodGateError>
pub fn body_policy( &self, method: DavMethod, xml_limit: usize, ) -> Result<Option<DavBodyPolicy>, DavMethodGateError>
Selects body handling from the same snapshot used by dispatch and discovery.
§Errors
Returns DavMethodGateError when the capability snapshot does not dispatch the method.
Trait Implementations§
Source§impl Clone for DavCapabilitySnapshot
impl Clone for DavCapabilitySnapshot
Source§fn clone(&self) -> DavCapabilitySnapshot
fn clone(&self) -> DavCapabilitySnapshot
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 DavCapabilitySnapshot
impl Debug for DavCapabilitySnapshot
Source§impl PartialEq for DavCapabilitySnapshot
impl PartialEq for DavCapabilitySnapshot
impl Eq for DavCapabilitySnapshot
impl StructuralPartialEq for DavCapabilitySnapshot
Auto Trait Implementations§
impl !Freeze for DavCapabilitySnapshot
impl RefUnwindSafe for DavCapabilitySnapshot
impl Send for DavCapabilitySnapshot
impl Sync for DavCapabilitySnapshot
impl Unpin for DavCapabilitySnapshot
impl UnwindSafe for DavCapabilitySnapshot
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.