[][src]Struct wascc_codec::blobstore::FileChunk

pub struct FileChunk {
    pub sequence_no: u64,
    pub container: String,
    pub id: String,
    pub total_bytes: u64,
    pub chunk_size: u64,
    pub chunk_bytes: Vec<u8>,
}

Represents a single chunk of a segmented file stream

Fields

sequence_no: u64

A sequence number that can be used for retry and ordering logic

container: String

The container in which this file exists

id: String

The unique ID of the blob

total_bytes: u64

Total number of bytes in the entire blob

chunk_size: u64

The number of bytes within any given chunk. Note that the last chunk in a file stream may be less than chunk_size

chunk_bytes: Vec<u8>

The raw bytes contained in this chunk

Trait Implementations

impl Debug for FileChunk[src]

impl<'de> Deserialize<'de> for FileChunk[src]

impl PartialEq<FileChunk> for FileChunk[src]

impl Sample for FileChunk[src]

impl Serialize for FileChunk[src]

impl StructuralPartialEq for FileChunk[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.