reth_static_file_types/event.rs
use crate::StaticFileTargets;
use std::time::Duration;
/// An event emitted by the static file producer.
#[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,
},
}