pub struct SnapshotViewerSet { /* private fields */ }Expand description
Known canonical snapshot viewers; equivalent duplicates reject.
Implementations§
Source§impl SnapshotViewerSet
impl SnapshotViewerSet
Sourcepub fn new(
principals: Vec<String>,
) -> Result<Self, SnapshotReadObservationError>
pub fn new( principals: Vec<String>, ) -> Result<Self, SnapshotReadObservationError>
Normalize and sort a bounded exact principal set, including known empty.
§Errors
Rejects excessive counts, invalid principals and canonical duplicates.
Sourcepub fn principals(&self) -> &[String]
pub fn principals(&self) -> &[String]
Read canonical viewers; ordering confers no control routing.
Sourcepub fn contains_caller(&self, binding: &OperationBindingRecord) -> bool
pub fn contains_caller(&self, binding: &OperationBindingRecord) -> bool
Test the exact original canonical caller.
Trait Implementations§
Source§impl Clone for SnapshotViewerSet
impl Clone for SnapshotViewerSet
Source§impl Debug for SnapshotViewerSet
impl Debug for SnapshotViewerSet
impl Eq for SnapshotViewerSet
Source§impl PartialEq for SnapshotViewerSet
impl PartialEq for SnapshotViewerSet
impl StructuralPartialEq for SnapshotViewerSet
Auto Trait Implementations§
impl Freeze for SnapshotViewerSet
impl RefUnwindSafe for SnapshotViewerSet
impl Send for SnapshotViewerSet
impl Sync for SnapshotViewerSet
impl Unpin for SnapshotViewerSet
impl UnsafeUnpin for SnapshotViewerSet
impl UnwindSafe for SnapshotViewerSet
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