Files
reth/crates/static-file/src/event.rs
Alexey Shekhirin 6b5b6f7a40 Breaking changes (#5191)
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>
2024-02-29 12:37:28 +00:00

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,
},
}