pub struct UploadFile<'a> {
pub filename: FixedString<23>,
pub metadata: FileMetadata,
pub vendor: Option<FileVendor>,
pub data: Vec<u8>,
pub target: Option<FileTransferTarget>,
pub load_addr: u32,
pub linked_file: Option<LinkedFile>,
pub after_upload: FileExitAction,
pub progress_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>,
}
Fields§
§filename: FixedString<23>
§metadata: FileMetadata
§vendor: Option<FileVendor>
§data: Vec<u8>
§target: Option<FileTransferTarget>
§load_addr: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more