pub struct DeltaDecoder { /* private fields */ }Expand description
Delta decoder for parsing and applying delta operations
Implementations§
Source§impl DeltaDecoder
impl DeltaDecoder
Sourcepub fn with_config(config: DeltaConfig) -> Self
pub fn with_config(config: DeltaConfig) -> Self
Creates a delta decoder with custom configuration
Sourcepub fn decode_delta(&self, bytes: &[u8]) -> Result<Vec<DeltaOp>, DeltaError>
pub fn decode_delta(&self, bytes: &[u8]) -> Result<Vec<DeltaOp>, DeltaError>
Sourcepub fn apply_delta(
&self,
base: &mut LnmpRecord,
ops: &[DeltaOp],
) -> Result<(), DeltaError>
pub fn apply_delta( &self, base: &mut LnmpRecord, ops: &[DeltaOp], ) -> Result<(), DeltaError>
Applies delta operations to a base record.
Sourcepub fn apply_delta_with_context(
&self,
base: &mut LnmpRecord,
ops: &[DeltaOp],
ctx: &DeltaApplyContext,
) -> Result<(), DeltaError>
pub fn apply_delta_with_context( &self, base: &mut LnmpRecord, ops: &[DeltaOp], ctx: &DeltaApplyContext, ) -> Result<(), DeltaError>
Applies delta operations with optional metadata-derived context (base, algorithm, compression).
Returns DeltaError if:
- Delta is disabled in config
- Metadata checks fail (base mismatch, unsupported algorithm/compression)
- A target FID is invalid
- An operation cannot be applied
- A merge conflict occurs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeltaDecoder
impl RefUnwindSafe for DeltaDecoder
impl Send for DeltaDecoder
impl Sync for DeltaDecoder
impl Unpin for DeltaDecoder
impl UnwindSafe for DeltaDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more