use core::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum DependencyState {
Pending,
Initializing,
Up,
Down,
}
impl fmt::Display for DependencyState {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let name = match self {
Self::Pending => "Pending",
Self::Initializing => "Initializing",
Self::Up => "Up",
Self::Down => "Down",
};
f.write_str(name)
}
}