pub trait State { // Required methods fn state(&self) -> String; fn is_available(&self) -> bool; }
状态特征
获取状态
是否可用