mssf-core 0.8.0

Rust for Azure Service Fabric. Rust safe APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
//! This module supports implementing callbacks when Service Fabric Packages are changed
//!
pub mod config;

/// The ways a given Service Fabric Package (e.g. ConfigurationPackage or DataPackage) can change
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum PackageChangeEvent<T> {
    Addition { new_package: T },
    Removal { previous_package: T },
    Modification { previous_package: T, new_package: T },
}

pub type ConfigurationPackageChangeEvent = PackageChangeEvent<super::config::ConfigurationPackage>;