pub struct FileBlock<'a> {
    pub client_token: Option<&'a str>,
    pub file_id: u8,
    pub block_size: usize,
    pub block_id: usize,
    pub block_payload: &'a [u8],
}

Fields

client_token: Option<&'a str>file_id: u8block_size: usizeblock_id: usizeblock_payload: &'a [u8]

Implementations

Validate the block index and size. If it is NOT the last block, it MUST be equal to a full block size. If it IS the last block, it MUST be equal to the expected remainder. If the block ID is out of range, that’s an error.

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.