pub struct StorageController<S, P>where
S: Clone,{ /* private fields */ }Expand description
This endpoint implements the StorageController component.
It can be mounted on the following components:
Implementations§
Source§impl<S, P> StorageController<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
<P as OperationPrivilegeMapping>::Post: Send,
impl<S, P> StorageController<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
<P as OperationPrivilegeMapping>::Post: Send,
pub fn get<H, T>(self, handler: H) -> Self
pub fn put<H, T>(self, handler: H) -> Self
pub fn patch<H, T>(self, handler: H) -> Self
Sourcepub fn environment_metrics(self, environment_metrics: Router<S>) -> Self
pub fn environment_metrics(self, environment_metrics: Router<S>) -> Self
Serves an instance of a EnvironmentMetrics.
Sourcepub fn metrics(self, metrics: Router<S>) -> Self
pub fn metrics(self, metrics: Router<S>) -> Self
Serves an instance of a StorageControllerMetrics.
Sourcepub fn attach_namespaces<H, T>(self, handler: H) -> Self
pub fn attach_namespaces<H, T>(self, handler: H) -> Self
Perform the AttachNamespaces operation on this StorageController instance.
Sourcepub fn detach_namespaces<H, T>(self, handler: H) -> Self
pub fn detach_namespaces<H, T>(self, handler: H) -> Self
Perform the DetachNamespaces operation on this StorageController instance.
Sourcepub fn security_receive<H, T>(self, handler: H) -> Self
pub fn security_receive<H, T>(self, handler: H) -> Self
Perform the SecurityReceive operation on this StorageController instance.
Sourcepub fn security_send<H, T>(self, handler: H) -> Self
pub fn security_send<H, T>(self, handler: H) -> Self
Perform the SecuritySend operation on this StorageController instance.
pub fn into_router(self) -> Router<S>
Trait Implementations§
Source§impl<S> Default for StorageController<S, DefaultPrivileges>where
S: Clone,
impl<S> Default for StorageController<S, DefaultPrivileges>where
S: Clone,
Auto Trait Implementations§
impl<S, P> Freeze for StorageController<S, P>
impl<S, P> !RefUnwindSafe for StorageController<S, P>
impl<S, P> Send for StorageController<S, P>
impl<S, P> !Sync for StorageController<S, P>
impl<S, P> Unpin for StorageController<S, P>
impl<S, P> !UnwindSafe for StorageController<S, P>
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