pub struct UploadFile<'a> {
pub file_name: FixedString<23>,
pub metadata: FileMetadata,
pub vendor: FileVendor,
pub data: &'a [u8],
pub target: FileTransferTarget,
pub load_address: u32,
pub linked_file: Option<LinkedFile>,
pub after_upload: FileExitAction,
pub progress_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>,
}
Fields§
§file_name: FixedString<23>
§metadata: FileMetadata
§vendor: FileVendor
§data: &'a [u8]
§target: FileTransferTarget
§load_address: u32
§linked_file: Option<LinkedFile>
§after_upload: FileExitAction
§progress_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UploadFile<'a>
impl<'a> !RefUnwindSafe for UploadFile<'a>
impl<'a> Send for UploadFile<'a>
impl<'a> !Sync for UploadFile<'a>
impl<'a> Unpin for UploadFile<'a>
impl<'a> !UnwindSafe for UploadFile<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more