mssf_core/runtime/package_change/
mod.rs

1// ------------------------------------------------------------
2// Copyright (c) Microsoft Corporation.  All rights reserved.
3// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
4// ------------------------------------------------------------
5//! This module supports implementing callbacks when Service Fabric Packages are changed
6//!
7pub mod config;
8
9/// The ways a given Service Fabric Package (e.g. ConfigurationPackage or DataPackage) can change
10#[derive(Debug, PartialEq, Eq, Clone)]
11pub enum PackageChangeEvent<T> {
12    Addition { new_package: T },
13    Removal { previous_package: T },
14    Modification { previous_package: T, new_package: T },
15}
16
17pub type ConfigurationPackageChangeEvent = PackageChangeEvent<super::config::ConfigurationPackage>;