pub struct PrefixSource {
pub addr: Address,
pub kept: u64,
pub dropped: u64,
}Expand description
One document a segment was assembled from, as the assembler saw it.
dropped is what the per-slot budget cut off the end of that
document, so a reader can tell a segment that carries a whole file
from one that carries the first half of it. Zero is the ordinary
case and is still reported, because “nothing was cut” is a fact and
an absent field is not.
Fields§
§addr: Address§kept: u64§dropped: u64Trait Implementations§
Source§impl Clone for PrefixSource
impl Clone for PrefixSource
Source§impl Debug for PrefixSource
impl Debug for PrefixSource
Source§impl<'de> Deserialize<'de> for PrefixSource
impl<'de> Deserialize<'de> for PrefixSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PrefixSource
Source§impl PartialEq for PrefixSource
impl PartialEq for PrefixSource
Source§impl Serialize for PrefixSource
impl Serialize for PrefixSource
impl StructuralPartialEq for PrefixSource
Auto Trait Implementations§
impl Freeze for PrefixSource
impl RefUnwindSafe for PrefixSource
impl Send for PrefixSource
impl Sync for PrefixSource
impl Unpin for PrefixSource
impl UnsafeUnpin for PrefixSource
impl UnwindSafe for PrefixSource
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