Struct rustot::ota::data_interface::FileBlock
source · 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: u8
block_size: usize
block_id: usize
block_payload: &'a [u8]
Implementations
Trait Implementations
sourceimpl<'a> From<GetStreamResponse<'a>> for FileBlock<'a>
impl<'a> From<GetStreamResponse<'a>> for FileBlock<'a>
sourcefn from(v: GetStreamResponse<'a>) -> Self
fn from(v: GetStreamResponse<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> RefUnwindSafe for FileBlock<'a>
impl<'a> Send for FileBlock<'a>
impl<'a> Sync for FileBlock<'a>
impl<'a> Unpin for FileBlock<'a>
impl<'a> UnwindSafe for FileBlock<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more