pub struct SupervisionPolicy { /* private fields */ }Expand description
What the system insists on beyond the ceremonies themselves.
Three separate things that are easy to confuse: which guards a human must answer, which roles have to be independent of which, and what each role is allowed to do. A design that left any of them implicit would have them decided, differently, by every run.
Implementations§
Source§impl SupervisionPolicy
impl SupervisionPolicy
pub fn new( human_approvals: impl IntoIterator<Item = GuardRef>, independence: impl IntoIterator<Item = IndependenceRule>, role_actions: impl IntoIterator<Item = (SystemRoleId, BTreeSet<RoleAction>)>, ) -> Self
pub const fn human_approvals(&self) -> &BTreeSet<GuardRef>
pub fn independence(&self) -> &[IndependenceRule]
pub const fn role_actions( &self, ) -> &BTreeMap<SystemRoleId, BTreeSet<RoleAction>>
Trait Implementations§
Source§impl Clone for SupervisionPolicy
impl Clone for SupervisionPolicy
Source§impl Debug for SupervisionPolicy
impl Debug for SupervisionPolicy
Source§impl Default for SupervisionPolicy
impl Default for SupervisionPolicy
Source§impl<'de> Deserialize<'de> for SupervisionPolicy
impl<'de> Deserialize<'de> for SupervisionPolicy
Source§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
impl Eq for SupervisionPolicy
Source§impl PartialEq for SupervisionPolicy
impl PartialEq for SupervisionPolicy
Source§impl Serialize for SupervisionPolicy
impl Serialize for SupervisionPolicy
impl StructuralPartialEq for SupervisionPolicy
Auto Trait Implementations§
impl Freeze for SupervisionPolicy
impl RefUnwindSafe for SupervisionPolicy
impl Send for SupervisionPolicy
impl Sync for SupervisionPolicy
impl Unpin for SupervisionPolicy
impl UnsafeUnpin for SupervisionPolicy
impl UnwindSafe for SupervisionPolicy
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