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: StringExpand description
Guid of the chunk
hash: u64Expand description
Chunk Hash
sha_hash: Option<Vec<u8>>Expand description
Chunk sha hash
hash_type: Option<u8>Expand description
1 = rolling hash, 2 = sha hash, 3 = both
uncompressed_size: Option<u32>Expand description
Total chunk size
data: Vec<u8>Expand description
Chunk data
Implementations
Trait Implementations
impl StructuralPartialEq for Chunk[src]
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more