Struct egs_api::api::types::chunk::Chunk [−][src]
pub struct Chunk {
pub guid: String,
pub hash: u64,
pub sha_hash: Option<Vec<u8>>,
pub hash_type: Option<u8>,
pub uncompressed_size: Option<u32>,
pub data: Vec<u8>,
// some fields omitted
}Expand description
Struct holding data for downloaded chunks
Fields
guid: StringGuid of the chunk
hash: u64Chunk Hash
sha_hash: Option<Vec<u8>>Chunk sha hash
hash_type: Option<u8>1 = rolling hash, 2 = sha hash, 3 = both
uncompressed_size: Option<u32>Total chunk size
data: Vec<u8>Chunk data
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl UnwindSafe for Chunk
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self