pub struct PackReadOutcome { /* private fields */ }Expand description
One decoded object and the resources measured while producing it.
Outcome construction and depth statistics are intentionally private. This prevents safe callers from forging lower structural depth and converting it into authoritative REF-base evidence.
ⓘ
let stats = PackReadStats {
source_bytes_read: 0,
compressed_bytes_read: 0,
peak_materialized_bytes: 0,
cached_bytes: 0,
cached_objects: 0,
cache_evictions: 0,
delta_depth: 0,
};
let _ = PackReadOutcome { object, stats };Implementations§
Source§impl PackReadOutcome
impl PackReadOutcome
pub fn object(&self) -> &EncodedObject
pub const fn stats(&self) -> &PackReadStats
pub const fn object_id(&self) -> ObjectId
pub fn resolved_base(&self) -> ResolvedPackObject
Trait Implementations§
Source§impl Clone for PackReadOutcome
impl Clone for PackReadOutcome
Auto Trait Implementations§
impl Freeze for PackReadOutcome
impl RefUnwindSafe for PackReadOutcome
impl Send for PackReadOutcome
impl Sync for PackReadOutcome
impl Unpin for PackReadOutcome
impl UnsafeUnpin for PackReadOutcome
impl UnwindSafe for PackReadOutcome
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