pub struct ControllerSet { /* private fields */ }Expand description
Canonical bounded known controller set, including an explicitly known empty set.
This validates identities, not observation authenticity. Missing/unknown controller evidence must fail at the provider boundary, never default into a success result.
Implementations§
Source§impl ControllerSet
impl ControllerSet
Sourcepub fn new(principals: Vec<String>) -> Result<Self, ControlObservationError>
pub fn new(principals: Vec<String>) -> Result<Self, ControlObservationError>
Normalize and sort exact principals; equivalent duplicate entries reject.
§Errors
Rejects excessive counts, malformed principals and canonical duplicates.
Sourcepub fn principals(&self) -> &[String]
pub fn principals(&self) -> &[String]
Read canonical controllers; ordering grants no routing or lifecycle semantics.
Sourcepub fn contains_caller(&self, binding: &OperationBindingRecord) -> bool
pub fn contains_caller(&self, binding: &OperationBindingRecord) -> bool
Check the exact canonical original caller, without delegating through other controllers.
Trait Implementations§
Source§impl Clone for ControllerSet
impl Clone for ControllerSet
Source§impl Debug for ControllerSet
impl Debug for ControllerSet
impl Eq for ControllerSet
Source§impl PartialEq for ControllerSet
impl PartialEq for ControllerSet
impl StructuralPartialEq for ControllerSet
Auto Trait Implementations§
impl Freeze for ControllerSet
impl RefUnwindSafe for ControllerSet
impl Send for ControllerSet
impl Sync for ControllerSet
impl Unpin for ControllerSet
impl UnsafeUnpin for ControllerSet
impl UnwindSafe for ControllerSet
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