pub struct RootResourceService<PR: Resource, P: Principal>(/* private fields */);
Trait Implementations§
Source§impl<PR: Clone + Resource, P: Clone + Principal> Clone for RootResourceService<PR, P>
impl<PR: Clone + Resource, P: Clone + Principal> Clone for RootResourceService<PR, P>
Source§fn clone(&self) -> RootResourceService<PR, P>
fn clone(&self) -> RootResourceService<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<Principal = P> + NamedRoute, P: Principal> ResourceService for RootResourceService<PR, P>
impl<PR: Resource<Principal = P> + NamedRoute, P: Principal> ResourceService for RootResourceService<PR, P>
type PathComponents = ()
type MemberType = PR
type Resource = RootResource<PR, P>
type Error = <PR as Resource>::Error
type Principal = P
fn get_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 (),
) -> Pin<Box<dyn Future<Output = Result<Self::Resource, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_members<'life0, 'life1, 'async_trait>(
&'life0 self,
_path_components: &'life1 Self::PathComponents,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Self::MemberType)>, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
_file: Self::Resource,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
_use_trashbin: bool,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn actix_resource(self) -> Resource
Source§fn actix_additional_routes(res: Resource) -> Resource
fn actix_additional_routes(res: Resource) -> Resource
Hook for other resources to insert their additional methods (i.e. REPORT, MKCALENDAR)
Auto Trait Implementations§
impl<PR, P> Freeze for RootResourceService<PR, P>
impl<PR, P> RefUnwindSafe for RootResourceService<PR, P>where
PR: RefUnwindSafe,
P: RefUnwindSafe,
impl<PR, P> Send for RootResourceService<PR, P>
impl<PR, P> Sync for RootResourceService<PR, P>
impl<PR, P> Unpin for RootResourceService<PR, P>
impl<PR, P> UnwindSafe for RootResourceService<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