pub struct PersistentCachePieceMetadata {
pub number: u32,
pub offset: u64,
pub length: u64,
pub digest: String,
pub parent_id: String,
pub traffic_type: u8,
pub cost: Duration,
pub created_at: NaiveDateTime,
}Expand description
PersistentCachePieceMetadata holds the metadata information for a persistent cache piece.
Fields§
§number: u32§offset: u64§length: u64§digest: String§parent_id: String§traffic_type: u8§cost: Duration§created_at: NaiveDateTimeImplementations§
Source§impl PersistentCachePieceMetadata
PersistentCachePieceMetadata implements the PersistentCachePieceMetadata functions.
impl PersistentCachePieceMetadata
PersistentCachePieceMetadata implements the PersistentCachePieceMetadata functions.
Trait Implementations§
Source§impl Clone for PersistentCachePieceMetadata
impl Clone for PersistentCachePieceMetadata
Source§fn clone(&self) -> PersistentCachePieceMetadata
fn clone(&self) -> PersistentCachePieceMetadata
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 PersistentCachePieceMetadata
impl Debug for PersistentCachePieceMetadata
Source§impl From<PersistentCachePieceMetadata> for (Bytes, u32)
Implement From for Bytes for conversion to a byte slice.
impl From<PersistentCachePieceMetadata> for (Bytes, u32)
Implement From
Auto Trait Implementations§
impl Freeze for PersistentCachePieceMetadata
impl RefUnwindSafe for PersistentCachePieceMetadata
impl Send for PersistentCachePieceMetadata
impl Sync for PersistentCachePieceMetadata
impl Unpin for PersistentCachePieceMetadata
impl UnwindSafe for PersistentCachePieceMetadata
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