Skip to main content

Work

Struct Work 

Source
pub struct Work<N, B, P> {
    pub metadata: N,
    pub purge: Option<PurgeConfig>,
    pub serving: B,
    pub preserved: P,
    pub root: Partition,
    pub shards: Arc<dyn ShardMap>,
    pub addressing: Addressing,
    pub retention_ms: u64,
    pub discovery_margin_ms: u64,
    pub profile: Profile,
    pub clock: Arc<dyn Clock>,
}
Expand description

All runtime dependencies; preservation is a separately provisioned blob store.

Fields§

§metadata: N§purge: Option<PurgeConfig>

Automatic cache purge settings shared with signed and late intake.

§serving: B§preserved: P§root: Partition§shards: Arc<dyn ShardMap>§addressing: Addressing§retention_ms: u64§discovery_margin_ms: u64§profile: Profile§clock: Arc<dyn Clock>

Implementations§

Source§

impl<N: NamespaceStore + Clone, B: BlobStore, P: BlobStore> Work<N, B, P>

Prepare guarded legal-hold state for the signed admin framework. Commit with the operator’s audit and replay result; no public route exists yet.

§Errors

Unknown requests, ended purge ownership, storage errors or invalid retention.

Trait Implementations§

Source§

impl<N: NamespaceStore + Clone, B: BlobStore, P: BlobStore> AdminOperations for Work<N, B, P>

Source§

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

Backend time for terminal preserved-stream failure audits.
Source§

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

fn preserved_piece<'a>( &'a self, descriptor: &'a Json, ) -> 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, B, P> Debug for Work<N, B, P>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<S: NamespaceStore, N: NamespaceStore + Clone, B: BlobStore, P: BlobStore> TimerHandler<S> for Work<N, B, P>

Source§

fn kind(&self) -> TimerKind

The kind this handler decodes.
Source§

fn max_per_tick(&self) -> Option<u32>

Lowers the shared TickBudget::max_per_kind allowance for this kind.
Source§

fn fire<'a>( &'a self, ctx: &'a TimerCtx<'a, S>, timer: &'a DueTimer, ) -> BoxFuture<'a, Result<Fired, StoreError>>

Prepare effects; the core atomically guards and removes the timer.

Auto Trait Implementations§

§

impl<N, B, P> !RefUnwindSafe for Work<N, B, P>

§

impl<N, B, P> !UnwindSafe for Work<N, B, P>

§

impl<N, B, P> Freeze for Work<N, B, P>
where N: Freeze, B: Freeze, P: Freeze,

§

impl<N, B, P> Send for Work<N, B, P>
where N: Send, B: Send, P: Send,

§

impl<N, B, P> Sync for Work<N, B, P>
where N: Sync, B: Sync, P: Sync,

§

impl<N, B, P> Unpin for Work<N, B, P>
where N: Unpin, B: Unpin, P: Unpin,

§

impl<N, B, P> UnsafeUnpin for Work<N, B, P>

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> 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, 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