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