pub struct CredentialDestination { /* private fields */ }Expand description
One credential destination with exact no-overwrite semantics.
Implementations§
Source§impl CredentialDestination
impl CredentialDestination
Sourcepub fn new(
name: InstallationSymbol,
role: InstallationSymbol,
expected_current: Option<CapabilityId>,
successor: CapabilityId,
) -> Result<Self, InstallationPlanError>
pub fn new( name: InstallationSymbol, role: InstallationSymbol, expected_current: Option<CapabilityId>, successor: CapabilityId, ) -> Result<Self, InstallationPlanError>
Creates one empty-slot install or exact-predecessor replacement.
Sourcepub const fn name(&self) -> &InstallationSymbol
pub const fn name(&self) -> &InstallationSymbol
Symbolic destination name; this is never a host path.
Sourcepub const fn role(&self) -> &InstallationSymbol
pub const fn role(&self) -> &InstallationSymbol
Symbolic role whose credential is installed.
Sourcepub const fn expected_current(&self) -> Option<CapabilityId>
pub const fn expected_current(&self) -> Option<CapabilityId>
Exact current capability that may be replaced, or None for must-be-empty.
Sourcepub const fn successor(&self) -> CapabilityId
pub const fn successor(&self) -> CapabilityId
Caller-stable successor capability identity; credential bytes are never retained.
Trait Implementations§
Source§impl Clone for CredentialDestination
impl Clone for CredentialDestination
Source§impl Debug for CredentialDestination
impl Debug for CredentialDestination
impl Eq for CredentialDestination
Source§impl PartialEq for CredentialDestination
impl PartialEq for CredentialDestination
impl StructuralPartialEq for CredentialDestination
Auto Trait Implementations§
impl Freeze for CredentialDestination
impl RefUnwindSafe for CredentialDestination
impl Send for CredentialDestination
impl Sync for CredentialDestination
impl Unpin for CredentialDestination
impl UnsafeUnpin for CredentialDestination
impl UnwindSafe for CredentialDestination
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