pub trait ObsBootstrapStatusHandler:
Debug
+ Send
+ Sync {
type Error: Error + Send + Sync + 'static;
// Required methods
fn handle_downloading(
&mut self,
progress: f32,
message: String,
) -> Result<(), Self::Error>;
fn handle_extraction(
&mut self,
progress: f32,
message: String,
) -> Result<(), Self::Error>;
}Required Associated Types§
Required Methods§
Sourcefn handle_downloading(
&mut self,
progress: f32,
message: String,
) -> Result<(), Self::Error>
fn handle_downloading( &mut self, progress: f32, message: String, ) -> Result<(), Self::Error>
Used to report in some way or another the download progress to the user (this is between 0.0 and 1.0)
§Errors
This should return an error if the download process should be aborted. This error will be mapped to ObsBootstrapError::Abort. This WILL NOT clean up any files or similar, that is the responsibility of the caller.
Sourcefn handle_extraction(
&mut self,
progress: f32,
message: String,
) -> Result<(), Self::Error>
fn handle_extraction( &mut self, progress: f32, message: String, ) -> Result<(), Self::Error>
Used to report in some way another the extraction progress to the user (this is between 0.0 and 1.0)
§Errors
This should return an error if the extraction process should be aborted. This error will be mapped to ObsBootstrapError::Abort. This WILL NOT clean up any files or similar, that