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§
Sourcefn plan<'a>(
&'a self,
path: &'a str,
input: &'a Value,
digest: &'a str,
now: u64,
budget: &'a SliceBudget,
) -> BoxFuture<'a, Result<Prepared, ServerError>>
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.
Sourcefn after_commit<'a>(
&'a self,
path: &'a str,
input: &'a Value,
response: Response,
now: u64,
budget: &'a SliceBudget,
) -> BoxFuture<'a, Result<Response, 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>>
Resume accepted denial activation from durable validated metadata. Called on nonce and operation replay as well as first acceptance.
Provided Methods§
Sourcefn preserved_now_ms(&self) -> Result<i64, ServerError>
fn preserved_now_ms(&self) -> Result<i64, ServerError>
Backend time for terminal preserved-stream failure audits.
Sourcefn preserved_piece<'a>(
&'a self,
_descriptor: &'a Value,
) -> BoxFuture<'a, Result<PreservedPiece, ServerError>>
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".