pub struct UploadProgram<'a> {
pub name: String,
pub description: String,
pub icon: String,
pub program_type: String,
pub slot: u8,
pub compress_program: bool,
pub data: ProgramData,
pub after_upload: FileExitAction,
pub ini_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>,
pub bin_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>,
pub lib_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>,
}
Fields§
§name: String
§description: String
§icon: String
§program_type: String
§slot: u8
0-indexed slot
compress_program: bool
§data: ProgramData
§after_upload: FileExitAction
§ini_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>
Called when progress has been made on the ini file.
100.0 should be considered a finished upload.
bin_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>
Called when progress has been made on the monolith/hot binary
100.0 should be considered a finished upload.
lib_callback: Option<Box<dyn FnMut(f32) + Send + 'a>>
Called when progress has been made on the cold library binary
100.0 should be considered a finished upload.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UploadProgram<'a>
impl<'a> !RefUnwindSafe for UploadProgram<'a>
impl<'a> Send for UploadProgram<'a>
impl<'a> !Sync for UploadProgram<'a>
impl<'a> Unpin for UploadProgram<'a>
impl<'a> !UnwindSafe for UploadProgram<'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