pub enum GrantPolicy {
Ask,
Requested,
Only(Vec<SecurityClass>),
}Expand description
Which keys to grant a joining S2 node.
Variants§
Ask
Ask with Event::GrantSecurityClasses and wait for
Controller::grant_security_classes.
Requested
Grant whatever the node requests.
Only(Vec<SecurityClass>)
Grant these (those the node also requests).
Trait Implementations§
Source§impl Clone for GrantPolicy
impl Clone for GrantPolicy
Source§impl Debug for GrantPolicy
impl Debug for GrantPolicy
Source§impl Default for GrantPolicy
impl Default for GrantPolicy
impl Eq for GrantPolicy
Source§impl PartialEq for GrantPolicy
impl PartialEq for GrantPolicy
impl StructuralPartialEq for GrantPolicy
Auto Trait Implementations§
impl Freeze for GrantPolicy
impl RefUnwindSafe for GrantPolicy
impl Send for GrantPolicy
impl Sync for GrantPolicy
impl Unpin for GrantPolicy
impl UnsafeUnpin for GrantPolicy
impl UnwindSafe for GrantPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.