pub struct EncodeInfo {
pub len: usize,
pub n_predicted: u8,
pub n_included: u8,
pub n_refresh: u8,
pub n_reset: u8,
pub field_count: usize,
pub bound_applies_bits: u64,
}Expand description
Statistics and saturation flags returned by a successful commit.
Fields§
§len: usizeNumber of bytes written.
n_predicted: u8Number of predicted (omitted) fields.
n_included: u8Number of included fields.
n_refresh: u8Number of refresh fields.
n_reset: u8Number of reset fields.
field_count: usizeNumber of schema fields represented by the bitset.
bound_applies_bits: u64Fixed u64 bitset: one flag per schema field, false when saturated.
Implementations§
Source§impl EncodeInfo
impl EncodeInfo
Sourcepub fn bound_applies(&self, index: usize) -> bool
pub fn bound_applies(&self, index: usize) -> bool
Whether the field’s configured bound applied.
Sourcepub fn bound_applies_vec(&self) -> Vec<bool>
pub fn bound_applies_vec(&self) -> Vec<bool>
Allocator-backed copy of the bound flags for convenience/reporting.
Trait Implementations§
Source§impl Clone for EncodeInfo
impl Clone for EncodeInfo
Source§impl Debug for EncodeInfo
impl Debug for EncodeInfo
impl Eq for EncodeInfo
Source§impl PartialEq for EncodeInfo
impl PartialEq for EncodeInfo
impl StructuralPartialEq for EncodeInfo
Auto Trait Implementations§
impl Freeze for EncodeInfo
impl RefUnwindSafe for EncodeInfo
impl Send for EncodeInfo
impl Sync for EncodeInfo
impl Unpin for EncodeInfo
impl UnsafeUnpin for EncodeInfo
impl UnwindSafe for EncodeInfo
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