pub struct SegmentSource {
pub addr: Address,
pub kept: u64,
pub dropped: u64,
}Expand description
One document a segment was assembled from, as the assembler saw it.
kept is how many bytes of that document reached the segment and
dropped is what the slot’s budget cut off the end of it, so the
pair states both what the model read and what it did not. A document
that fitted whole reports dropped: 0, which is a measurement
rather than an absence.
Fields§
§addr: Address§kept: u64§dropped: u64Implementations§
Source§impl SegmentSource
impl SegmentSource
Sourcepub fn whole(addr: Address, kept: u64) -> SegmentSource
pub fn whole(addr: Address, kept: u64) -> SegmentSource
A document that reached its segment whole.
Trait Implementations§
Source§impl Clone for SegmentSource
impl Clone for SegmentSource
Source§impl Debug for SegmentSource
impl Debug for SegmentSource
impl Eq for SegmentSource
Source§impl PartialEq for SegmentSource
impl PartialEq for SegmentSource
impl StructuralPartialEq for SegmentSource
Auto Trait Implementations§
impl Freeze for SegmentSource
impl RefUnwindSafe for SegmentSource
impl Send for SegmentSource
impl Sync for SegmentSource
impl Unpin for SegmentSource
impl UnsafeUnpin for SegmentSource
impl UnwindSafe for SegmentSource
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