Struct rustot::ota::data_interface::FileBlock[][src]

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

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.