Skip to main content

ChangeSet

Struct ChangeSet 

Source
pub struct ChangeSet<A, O> { /* private fields */ }
Expand description

Immutable semantic delta between two exact generations.

Implementations§

Source§

impl<A, O> ChangeSet<A, O>

Source

pub const fn from(&self) -> &Generation<A, O>

Exact immutable base endpoint.

Source

pub const fn to(&self) -> &Generation<A, O>

Exact immutable resulting endpoint.

Source

pub const fn changes(&self) -> &GenerationDiff

Stable path-independent records and namespace binding changes.

Source

pub const fn work(&self) -> WorkCounters

Exact bounded work used to authenticate and compute this delta.

Source§

impl<A: AsyncAuthorityStore, O: AsyncObjectStore> ChangeSet<A, O>

Source

pub async fn changed_paths( &self, maximum_entries: u32, ) -> Result<Vec<ChangedPath>, WorkspaceError>

Resolves every changed record or binding to exact paths with one bounded traversal of each endpoint. Equal Merkle subtrees remain skipped by the semantic diff that created this set.

§Errors

Returns WorkspaceError::ChangedPathLimit instead of a partial result when either endpoint exceeds maximum_entries.

Source

pub async fn changed_paths_bounded( &self, maximum_entries: u32, budget: WorkBudget, cancellation: &CancellationToken, ) -> Result<OperationReceipt<Vec<ChangedPath>>, WorkspaceError>

Resolves changed paths with one cumulative work budget and explicit cancellation token. Partial traversal is never reported as exact.

Source

pub async fn compose( &self, next: &ChangeSet<A, O>, maximum_changes: u32, ) -> Result<ChangeSet<A, O>, WorkspaceError>

Composes contiguous immutable deltas into their exact net semantic change. Intermediate changes that cancel are absent from the result.

The implementation diffs the outer Merkle endpoints instead of concatenating records, preserving canonical rename, hard-link, revert, and equal-subtree behavior.

§Errors

Rejects non-contiguous or foreign deltas and bounded diff exhaustion.

Auto Trait Implementations§

§

impl<A, O> !RefUnwindSafe for ChangeSet<A, O>

§

impl<A, O> !UnwindSafe for ChangeSet<A, O>

§

impl<A, O> Freeze for ChangeSet<A, O>
where Generation<A, O>: Freeze,

§

impl<A, O> Send for ChangeSet<A, O>
where Generation<A, O>: Send,

§

impl<A, O> Sync for ChangeSet<A, O>
where Generation<A, O>: Sync,

§

impl<A, O> Unpin for ChangeSet<A, O>
where Generation<A, O>: Unpin,

§

impl<A, O> UnsafeUnpin for ChangeSet<A, O>
where Generation<A, O>: 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> StorageFuture for T
where T: Send,

Source§

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

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