manta-shared 2.0.0-beta.12

Shared types and pure helpers used by both manta-cli and manta-server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shared types for hardware-cluster operations.

/// Whether the hw cluster operation moves nodes into the target (Pin) or
/// releases them back (Unpin).
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum HwClusterMode {
  /// Move nodes matching the hardware pattern from the parent cluster
  /// into the target cluster.
  Pin,
  /// Move nodes matching the hardware pattern from the target cluster
  /// back to the parent cluster.
  Unpin,
}