pub struct TieredBlock {
pub cid: String,
pub size: u64,
pub current_tier: StorageTier,
pub last_accessed: u64,
pub access_count: u32,
pub archived_at: Option<u64>,
pub compression_ratio: Option<f64>,
}Expand description
Metadata record for a single block tracked by the cold-storage manager.
Fields§
§cid: StringContent identifier (CID string).
size: u64Block size in bytes.
current_tier: StorageTierCurrent tier assignment.
last_accessed: u64Unix timestamp (seconds) of the most recent access.
access_count: u32Total number of times the block has been accessed.
archived_at: Option<u64>Unix timestamp (seconds) when the block was first archived (Cold or Frozen).
compression_ratio: Option<f64>Compression ratio achieved when archiving (compressed_size / original_size).
None if the block has not been compressed.
Implementations§
Source§impl TieredBlock
impl TieredBlock
Trait Implementations§
Source§impl Clone for TieredBlock
impl Clone for TieredBlock
Source§fn clone(&self) -> TieredBlock
fn clone(&self) -> TieredBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TieredBlock
impl RefUnwindSafe for TieredBlock
impl Send for TieredBlock
impl Sync for TieredBlock
impl Unpin for TieredBlock
impl UnsafeUnpin for TieredBlock
impl UnwindSafe for TieredBlock
Blanket Implementations§
impl<T> Allocation for T
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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