pub enum FullRetainedReason {
NotByteReversible,
NotSmaller {
full_bytes: usize,
delta_bytes: usize,
},
NotSerializable,
}Expand description
Why an eligible frame was persisted in full rather than as a delta.
Variants§
NotByteReversible
Applying the delta back to the base did not reproduce the frame byte for byte. The encoder refuses to persist a delta it cannot prove reversible, whatever the saving would have been.
NotSmaller
The delta document is not smaller than the frame it would replace, so compacting it would cost bytes rather than save them.
Fields
NotSerializable
The frame or its base could not be serialized, so neither the digest nor the reversibility check could be performed.
Trait Implementations§
Source§impl Clone for FullRetainedReason
impl Clone for FullRetainedReason
Source§fn clone(&self) -> FullRetainedReason
fn clone(&self) -> FullRetainedReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FullRetainedReason
impl Debug for FullRetainedReason
impl Eq for FullRetainedReason
Source§impl PartialEq for FullRetainedReason
impl PartialEq for FullRetainedReason
impl StructuralPartialEq for FullRetainedReason
Auto Trait Implementations§
impl Freeze for FullRetainedReason
impl RefUnwindSafe for FullRetainedReason
impl Send for FullRetainedReason
impl Sync for FullRetainedReason
impl Unpin for FullRetainedReason
impl UnsafeUnpin for FullRetainedReason
impl UnwindSafe for FullRetainedReason
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