mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-10 23:15:34 -05:00
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com> Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com> Co-authored-by: joshieDo <ranriver@protonmail.com> Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me> Co-authored-by: Thomas Coratger <thomas.coratger@gmail.com>
20 lines
632 B
Rust
20 lines
632 B
Rust
use crate::StaticFileTargets;
|
|
use std::time::Duration;
|
|
|
|
/// An event emitted by a [StaticFileProducer][crate::StaticFileProducer].
|
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
|
pub enum StaticFileProducerEvent {
|
|
/// Emitted when static file producer started running.
|
|
Started {
|
|
/// Targets that will be moved to static files
|
|
targets: StaticFileTargets,
|
|
},
|
|
/// Emitted when static file producer finished running.
|
|
Finished {
|
|
/// Targets that were moved to static files
|
|
targets: StaticFileTargets,
|
|
/// Time it took to run the static file producer
|
|
elapsed: Duration,
|
|
},
|
|
}
|