Skip to main content

AdminStore

Trait AdminStore 

Source
pub trait AdminStore: Send {
    type Request: Send;
    type Response: Send;

    // Required method
    fn execute_admin(
        &mut self,
        request: Self::Request,
    ) -> impl Future<Output = Result<Self::Response, StoreError>> + Send;
}
Expand description

Administrative storage capability with implementation-owned values.

Required Associated Types§

Source

type Request: Send

Value type used for request.

Source

type Response: Send

Value type used for response.

Required Methods§

Source

fn execute_admin( &mut self, request: Self::Request, ) -> impl Future<Output = Result<Self::Response, StoreError>> + Send

Executes one bounded administrative operation.

§Errors

Returns StoreError with crate::StoreOperation::Admin when the administrative operation fails.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§