1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
// Copyright 2020-2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
use bee_message::milestone::{Milestone, MilestoneIndex};
/// An event that indicates that the latest milestone has changed.
#[derive(Clone)]
pub struct LatestMilestoneChanged {
/// The index of the milestone
pub index: MilestoneIndex,
/// The milestone data
pub milestone: Milestone,
}
/// An event that indicates that the solid milestone has changed.
#[derive(Clone)]
pub struct SolidMilestoneChanged {
/// The index of the milestone
pub index: MilestoneIndex,
/// The milestone data
pub milestone: Milestone,
}
/// An event that indicates that the confirmed milestone has changed.
#[derive(Clone)]
pub struct ConfirmedMilestoneChanged {
/// The index of the milestone
pub index: MilestoneIndex,
/// The milestone data
pub milestone: Milestone,
}
/// An event that indicates that the snapshot milestone has changed.
#[derive(Clone)]
pub struct SnapshotMilestoneIndexChanged {
/// The index of the milestone
pub index: MilestoneIndex,
}
/// An event that indicates that the pruning milestone has changed.
#[derive(Clone)]
pub struct PruningMilestoneIndexChanged {
/// The index of the milestone
pub index: MilestoneIndex,
}