pub struct RootResource<PR: Resource, P: Principal>(/* private fields */);
Trait Implementations§
Source§impl<PR: Clone + Resource, P: Clone + Principal> Clone for RootResource<PR, P>
impl<PR: Clone + Resource, P: Clone + Principal> Clone for RootResource<PR, P>
Source§fn clone(&self) -> RootResource<PR, P>
fn clone(&self) -> RootResource<PR, P>
Returns a copy 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<PR: Resource + NamedRoute, P: Principal> CommonPropertiesExtension for RootResource<PR, P>
impl<PR: Resource + NamedRoute, P: Principal> CommonPropertiesExtension for RootResource<PR, P>
type PrincipalResource = PR
fn get_prop( &self, rmap: &ResourceMap, principal: &Self::Principal, prop: &CommonPropertiesPropName, ) -> Result<CommonPropertiesProp, <Self as Resource>::Error>
fn set_prop(&self, _prop: CommonPropertiesProp) -> Result<(), Error>
fn remove_prop(&self, _prop: &CommonPropertiesPropName) -> Result<(), Error>
Source§impl<PR: Resource + NamedRoute, P: Principal> Resource for RootResource<PR, P>
impl<PR: Resource + NamedRoute, P: Principal> Resource for RootResource<PR, P>
type Prop = CommonPropertiesProp
type Error = <PR as Resource>::Error
type Principal = P
fn get_resourcetype(&self) -> Resourcetype
fn get_prop( &self, rmap: &ResourceMap, user: &P, prop: &CommonPropertiesPropName, ) -> Result<Self::Prop, Self::Error>
fn get_user_privileges( &self, _user: &P, ) -> Result<UserPrivilegeSet, Self::Error>
fn list_props() -> Vec<(Option<Namespace<'static>>, &'static str)>
fn set_prop(&mut self, _prop: Self::Prop) -> Result<(), Error>
fn remove_prop( &mut self, _prop: &<Self::Prop as EnumUnitVariants>::UnitVariants, ) -> Result<(), Error>
fn get_owner(&self) -> Option<&str>
fn get_etag(&self) -> Option<String>
fn satisfies_if_match(&self, if_match: &IfMatch) -> bool
fn satisfies_if_none_match(&self, if_none_match: &IfNoneMatch) -> bool
fn propfind( &self, path: &str, props: &[&str], principal: &Self::Principal, rmap: &ResourceMap, ) -> Result<ResponseElement<Self::Prop>, Self::Error>
Auto Trait Implementations§
impl<PR, P> Freeze for RootResource<PR, P>
impl<PR, P> RefUnwindSafe for RootResource<PR, P>where
PR: RefUnwindSafe,
P: RefUnwindSafe,
impl<PR, P> Send for RootResource<PR, P>
impl<PR, P> Sync for RootResource<PR, P>
impl<PR, P> Unpin for RootResource<PR, P>
impl<PR, P> UnwindSafe for RootResource<PR, P>where
PR: UnwindSafe,
P: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more