Skip to main content

Service

Struct Service 

Source
pub struct Service<N> { /* private fields */ }
Expand description

Factory-only operator extension. Production adapters remain disabled until PR2.

Implementations§

Source§

impl<N: NamespaceStore + Clone> Service<N>

Source

pub fn new(store: N, root: Partition, shards: Arc<dyn ShardMap>) -> Self

Construct the inert intent extension over durable operator metadata.

Source

pub fn with_purge(self, purge: Option<PurgeConfig>) -> Self

Attach configured automatic cache invalidation for accepted actions.

Source

pub async fn resume( &self, id: Hash, now: u64, request_budget: &SliceBudget, ) -> Result<(), ServerError>

Resume bounded denial activation; the preservation timer remains owned by PR2.

§Errors

Missing/corrupt accepted work, unavailable storage or exhausted call budget.

Trait Implementations§

Source§

impl<N: NamespaceStore + Clone> AdminOperations for Service<N>

Source§

fn plan<'a>( &'a self, path: &'a str, input: &'a Json, digest: &'a str, now: u64, request_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 Json, response: Response, now: u64, request_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.
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.
Source§

impl<N: Clone> Clone for Service<N>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N> Debug for Service<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> !RefUnwindSafe for Service<N>

§

impl<N> !UnwindSafe for Service<N>

§

impl<N> Freeze for Service<N>
where N: Freeze,

§

impl<N> Send for Service<N>
where N: Send,

§

impl<N> Sync for Service<N>
where N: Sync,

§

impl<N> Unpin for Service<N>
where N: Unpin,

§

impl<N> UnsafeUnpin for Service<N>
where N: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSend for T
where T: Send + ?Sized,

Source§

impl<T> MaybeSync for T
where T: Sync + ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more