pub struct FragmentMeta {
pub fragment_id: String,
pub chunk_id: String,
pub k: usize,
pub size_bytes: u64,
}Expand description
Lightweight record of a single fragment stored on disk.
Does not hold the fragment data — only enough information for the quality monitor to issue proof-of-storage challenges and for the storage manager to locate the file.
Fields§
§fragment_id: StringUUID of the fragment (also the filename without extension).
chunk_id: StringBLAKE3 chunk hash prefix this fragment belongs to.
k: usizeNumber of source symbols k for this fragment’s chunk.
size_bytes: u64On-disk size in bytes (full binary blob including header).
Trait Implementations§
Source§impl Clone for FragmentMeta
impl Clone for FragmentMeta
Source§fn clone(&self) -> FragmentMeta
fn clone(&self) -> FragmentMeta
Returns a duplicate of the value. Read more
1.0.0 · 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 FragmentMeta
impl Debug for FragmentMeta
Source§impl<'de> Deserialize<'de> for FragmentMeta
impl<'de> Deserialize<'de> for FragmentMeta
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
Auto Trait Implementations§
impl Freeze for FragmentMeta
impl RefUnwindSafe for FragmentMeta
impl Send for FragmentMeta
impl Sync for FragmentMeta
impl Unpin for FragmentMeta
impl UnwindSafe for FragmentMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more