pub enum JailMsg {
Jail {
operator: String,
duration: JailingDuration,
},
Unjail {
operator: Option<String>,
},
}Variants
Jail
Fields
operator: StringOperator which should be jailed
duration: JailingDurationDuration for how long validator is jailed
Jails validator. Can be executed only by the admin.
Unjail
Fields
Unjails validator. Admin can unjail anyone anytime, others can unjail only themselves and only if the jail period passed.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for JailMsg
impl UnwindSafe for JailMsg
Blanket Implementations
Mutably borrows from an owned value. Read more