reth_static_file_types/event.rs
1use crate::StaticFileTargets;
2use core::time::Duration;
3
4/// An event emitted by the static file producer.
5#[derive(Debug, PartialEq, Eq, Clone)]
6pub enum StaticFileProducerEvent {
7 /// Emitted when static file producer started running.
8 Started {
9 /// Targets that will be moved to static files
10 targets: StaticFileTargets,
11 },
12 /// Emitted when static file producer finished running.
13 Finished {
14 /// Targets that were moved to static files
15 targets: StaticFileTargets,
16 /// Time it took to run the static file producer
17 elapsed: Duration,
18 },
19}