pub struct DownloadFile {
pub file_name: FixedString<23>,
pub size: u32,
pub vendor: FileVendor,
pub target: Option<FileTransferTarget>,
pub load_addr: u32,
pub progress_callback: Option<Box<dyn FnMut(f32) + Send>>,
}
Fields§
§file_name: FixedString<23>
§size: u32
§vendor: FileVendor
§target: Option<FileTransferTarget>
§load_addr: u32
§progress_callback: Option<Box<dyn FnMut(f32) + Send>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DownloadFile
impl !RefUnwindSafe for DownloadFile
impl Send for DownloadFile
impl !Sync for DownloadFile
impl Unpin for DownloadFile
impl !UnwindSafe for DownloadFile
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