pub struct EffectiveAnchor<'a> { /* private fields */ }Expand description
Explicit local trust anchor with an effective, possibly inherited key. Binding proves original SPKI identity, not trust or a continuation of an earlier path’s accumulated constraints. The caller selects this boundary.
Implementations§
Source§impl<'a> EffectiveAnchor<'a>
impl<'a> EffectiveAnchor<'a>
Sourcepub fn bind<E: Work>(
anchor: Anchor<'a>,
key: WorkingKey<'a>,
execution: &E,
) -> Result<Option<Self>>
pub fn bind<E: Work>( anchor: Anchor<'a>, key: WorkingKey<'a>, execution: &E, ) -> Result<Option<Self>>
Bind a previously projected effective key to this anchor’s original
SPKI. None denotes completed source mismatch; resource errors remain
errors. Inherited parameter bytes continue borrowing their source.
Sourcepub fn anchor(self) -> Anchor<'a>
pub fn anchor(self) -> Anchor<'a>
Caller-selected local anchor, retaining its certificate constraints.
Sourcepub fn key(self) -> WorkingKey<'a>
pub fn key(self) -> WorkingKey<'a>
Effective key bound to the anchor’s original SPKI.
Trait Implementations§
Source§impl<'a> Clone for EffectiveAnchor<'a>
impl<'a> Clone for EffectiveAnchor<'a>
impl<'a> Copy for EffectiveAnchor<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EffectiveAnchor<'a>
impl<'a> !Send for EffectiveAnchor<'a>
impl<'a> !Sync for EffectiveAnchor<'a>
impl<'a> !UnwindSafe for EffectiveAnchor<'a>
impl<'a> Freeze for EffectiveAnchor<'a>
impl<'a> Unpin for EffectiveAnchor<'a>
impl<'a> UnsafeUnpin for EffectiveAnchor<'a>
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