pub struct AuthorizationPrincipalPair { /* private fields */ }Expand description
Exactly two distinct, role-bound principal contexts.
Implementations§
Source§impl AuthorizationPrincipalPair
impl AuthorizationPrincipalPair
Sourcepub fn new(
primary: PrimaryAuthorizationPrincipal,
peer: PeerAuthorizationPrincipal,
) -> Result<Self, AuthorizationPrincipalError>
pub fn new( primary: PrimaryAuthorizationPrincipal, peer: PeerAuthorizationPrincipal, ) -> Result<Self, AuthorizationPrincipalError>
Creates a pair and rejects identical credential bytes before any I/O.
Sourcepub fn into_proof(self) -> AuthorizationPrincipalPairProof
pub fn into_proof(self) -> AuthorizationPrincipalPairProof
Consumes both credentials and retains only the value-free proof.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthorizationPrincipalPair
impl RefUnwindSafe for AuthorizationPrincipalPair
impl Send for AuthorizationPrincipalPair
impl Sync for AuthorizationPrincipalPair
impl Unpin for AuthorizationPrincipalPair
impl UnsafeUnpin for AuthorizationPrincipalPair
impl UnwindSafe for AuthorizationPrincipalPair
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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