pub enum PipelineEvent {
Show 23 variants
PipelineStarted {
total_jobs: usize,
},
PipelineFinished {
duration_secs: f64,
success_count: usize,
fail_count: usize,
},
PlanningStarted,
DependencyResolutionStarted,
DependencyResolutionFinished,
PlanningFinished {
job_count: usize,
},
DownloadStarted {
target_id: String,
url: String,
},
DownloadFinished {
target_id: String,
path: PathBuf,
size_bytes: u64,
},
DownloadProgressUpdate {
target_id: String,
bytes_so_far: u64,
total_size: Option<u64>,
},
DownloadCached {
target_id: String,
size_bytes: u64,
},
DownloadFailed {
target_id: String,
url: String,
error: String,
},
JobProcessingStarted {
target_id: String,
},
JobDispatchedToCore {
target_id: String,
},
UninstallStarted {
target_id: String,
version: String,
},
UninstallFinished {
target_id: String,
version: String,
},
BuildStarted {
target_id: String,
},
InstallStarted {
target_id: String,
pkg_type: PipelinePackageType,
},
LinkStarted {
target_id: String,
pkg_type: PipelinePackageType,
},
JobSuccess {
target_id: String,
action: JobAction,
pkg_type: PipelinePackageType,
},
JobFailed {
target_id: String,
action: JobAction,
error: String,
},
LogInfo {
message: String,
},
LogWarn {
message: String,
},
LogError {
message: String,
},
}
Variants§
PipelineStarted
PipelineFinished
PlanningStarted
DependencyResolutionStarted
DependencyResolutionFinished
PlanningFinished
DownloadStarted
DownloadFinished
DownloadProgressUpdate
DownloadCached
DownloadFailed
JobProcessingStarted
JobDispatchedToCore
UninstallStarted
UninstallFinished
BuildStarted
InstallStarted
LinkStarted
JobSuccess
JobFailed
LogInfo
LogWarn
LogError
Implementations§
Source§impl PipelineEvent
impl PipelineEvent
pub fn job_failed( target_id: String, action: JobAction, error: &SpsError, ) -> Self
pub fn download_failed(target_id: String, url: String, error: &SpsError) -> Self
Trait Implementations§
Source§impl Clone for PipelineEvent
impl Clone for PipelineEvent
Source§fn clone(&self) -> PipelineEvent
fn clone(&self) -> PipelineEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PipelineEvent
impl Debug for PipelineEvent
Source§impl<'de> Deserialize<'de> for PipelineEvent
impl<'de> Deserialize<'de> for PipelineEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PipelineEvent
impl RefUnwindSafe for PipelineEvent
impl Send for PipelineEvent
impl Sync for PipelineEvent
impl Unpin for PipelineEvent
impl UnwindSafe for PipelineEvent
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