Skip to main content

AdminOperations

Trait AdminOperations 

Source
pub trait AdminOperations: MaybeSend + MaybeSync {
    // Required methods
    fn plan<'a>(
        &'a self,
        path: &'a str,
        input: &'a Value,
        digest: &'a str,
        now: u64,
        budget: &'a SliceBudget,
    ) -> BoxFuture<'a, Result<Prepared, ServerError>>;
    fn after_commit<'a>(
        &'a self,
        path: &'a str,
        input: &'a Value,
        response: Response,
        now: u64,
        budget: &'a SliceBudget,
    ) -> BoxFuture<'a, Result<Response, ServerError>>;

    // Provided methods
    fn preserved_now_ms(&self) -> Result<i64, ServerError> { ... }
    fn preserved_piece<'a>(
        &'a self,
        _descriptor: &'a Value,
    ) -> BoxFuture<'a, Result<PreservedPiece, ServerError>> { ... }
}
Expand description

Internal extension of the signed, audited operator lifecycle.

Required Methods§

Source

fn plan<'a>( &'a self, path: &'a str, input: &'a Value, digest: &'a str, now: u64, budget: &'a SliceBudget, ) -> BoxFuture<'a, Result<Prepared, ServerError>>

Prepare root effects after staging immutable action metadata; no denial is activated here.

Source

fn after_commit<'a>( &'a self, path: &'a str, input: &'a Value, response: Response, now: u64, budget: &'a SliceBudget, ) -> BoxFuture<'a, Result<Response, ServerError>>

Resume accepted denial activation from durable validated metadata. Called on nonce and operation replay as well as first acceptance.

Provided Methods§

Source

fn preserved_now_ms(&self) -> Result<i64, ServerError>

Backend time for terminal preserved-stream failure audits.

Source

fn preserved_piece<'a>( &'a self, _descriptor: &'a Value, ) -> BoxFuture<'a, Result<PreservedPiece, ServerError>>

Read one bounded, freshly authorized and verified preservation piece. The input is a byte-free descriptor; implementations recheck live retention.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§