pub struct Located {
pub seq: u64,
pub kind: u16,
pub meta: Vec<u8>,
pub path: PathBuf,
pub blob_offset: u64,
pub blob_len: u64,
pub payload_crc: Option<u32>,
}Expand description
Where a frame’s blob lies, for a reader that streams it in chunks rather than loading it.
Fields§
§seq: u64Sequence number.
kind: u16Kind as stored.
meta: Vec<u8>Meta bytes.
path: PathBufThe segment file the blob is in.
blob_offset: u64Byte offset of the blob inside that file.
blob_len: u64Blob length.
payload_crc: Option<u32>The frame’s payload crc32c (meta ‖ blob) — Some only on the LAST piece (restore-large-
entry, 2026-10-07): what a sender stamps on the entry’s last chunk so a box that put the
entry together across several streams applies it only if it IS the entry. From
Log::read_pieces it is CHECKED: the crc over the bytes read matched the trailer. From
Log::read_pieces_from at an offset it is the trailer AS STORED, unchecked here — the
bytes below the offset were not read — and the receiver, which holds the whole entry,
checks it. None from Log::locate_blob and on an erased frame (its crc was over bytes
now gone).
Trait Implementations§
impl Eq for Located
impl StructuralPartialEq for Located
Auto Trait Implementations§
impl Freeze for Located
impl RefUnwindSafe for Located
impl Send for Located
impl Sync for Located
impl Unpin for Located
impl UnsafeUnpin for Located
impl UnwindSafe for Located
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.