#[non_exhaustive]pub enum GrantState {
Offered,
Consented,
Withdrawn,
CleanupReported,
}Expand description
The node’s record of a grant, per installation and container: what the member’s client has told it, signed, at a point in time. It is not an observation of the pod’s ACLs.
§Examples
use stratum_node_core::GrantState;
assert_eq!(GrantState::CleanupReported.as_str(), "cleanup_reported");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Offered
Offered at installation.
Consented
The member’s consent named it.
Withdrawn
Withdrawn; the member’s client has not yet reported the cleanup.
CleanupReported
The member’s client reported removing it and reading the ACL back.
Implementations§
Trait Implementations§
Source§impl Clone for GrantState
impl Clone for GrantState
impl Copy for GrantState
Source§impl Debug for GrantState
impl Debug for GrantState
Source§impl<'de> Deserialize<'de> for GrantState
impl<'de> Deserialize<'de> for GrantState
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GrantState
impl Display for GrantState
impl Eq for GrantState
Source§impl FromStr for GrantState
impl FromStr for GrantState
Source§impl Hash for GrantState
impl Hash for GrantState
Source§impl Ord for GrantState
impl Ord for GrantState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GrantState
impl PartialEq for GrantState
Source§impl PartialOrd for GrantState
impl PartialOrd for GrantState
Source§impl Serialize for GrantState
impl Serialize for GrantState
impl StructuralPartialEq for GrantState
Auto Trait Implementations§
impl Forget for GrantState
impl Freeze for GrantState
impl Move for GrantState
impl RefUnwindSafe for GrantState
impl Send for GrantState
impl Sync for GrantState
impl Unpin for GrantState
impl UnsafeUnpin for GrantState
impl UnwindSafe for GrantState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more