pub struct ControllerRecognition { /* private fields */ }Expand description
Fixed eight-slot table. Default deny; no implicit eviction; no key material.
Implementations§
Source§impl ControllerRecognition
impl ControllerRecognition
Sourcepub fn new_local_admin() -> Result<(Self, RecognitionAdmin), E>
pub fn new_local_admin() -> Result<(Self, RecognitionAdmin), E>
Host authenticates its administrator before invoking this.
pub fn install( &mut self, admin: &RecognitionAdmin, enrollment: RecognitionEnrollment, now: u64, ) -> Result<RecognitionHandle, E>
Sourcepub fn rotate(
&mut self,
admin: &RecognitionAdmin,
handle: RecognitionHandle,
enrollment: RecognitionEnrollment,
now: u64,
) -> Result<RecognitionHandle, E>
pub fn rotate( &mut self, admin: &RecognitionAdmin, handle: RecognitionHandle, enrollment: RecognitionEnrollment, now: u64, ) -> Result<RecognitionHandle, E>
Explicit replacement. Old PinHandle and decision ids do not survive.
Sourcepub fn recognize(
&self,
principal: StrongDigest,
source: StrongDigest,
source_length: u64,
policy: StrongDigest,
publisher: StrongDigest,
purpose: StrongDigest,
operation: OperationId,
action: DisclosureAction,
now: u64,
) -> Result<RecognizedController, E>
pub fn recognize( &self, principal: StrongDigest, source: StrongDigest, source_length: u64, policy: StrongDigest, publisher: StrongDigest, purpose: StrongDigest, operation: OperationId, action: DisclosureAction, now: u64, ) -> Result<RecognizedController, E>
Default deny. Exact source/policy/principal/publisher/purpose/operation.
pub fn consume_decision_id( &mut self, admin: &RecognitionAdmin, handle: RecognitionHandle, ) -> Result<u64, E>
pub fn snapshot( &self, handle: RecognitionHandle, ) -> Result<RecognizedController, E>
Auto Trait Implementations§
impl Freeze for ControllerRecognition
impl RefUnwindSafe for ControllerRecognition
impl Send for ControllerRecognition
impl Sync for ControllerRecognition
impl Unpin for ControllerRecognition
impl UnsafeUnpin for ControllerRecognition
impl UnwindSafe for ControllerRecognition
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more