Struct PluginInstanceId
pub struct PluginInstanceId { /* private fields */ }Expand description
The canonical logical namespace of one plugin capability binding.
package comes from an admitted manifest, capability selects one of its
declared worlds, and binding is assigned by the host. Versions, payload
digests, configuration revisions, and guest-exported names are intentionally
excluded so an upgrade does not change the logical namespace. This ID is not
artifact or publisher provenance; security-sensitive services must also use
the host’s admission decision when authorizing access.
Implementations§
Source§impl PluginInstanceId
impl PluginInstanceId
Sourcepub fn capability(&self) -> PluginCapability
pub fn capability(&self) -> PluginCapability
Capability world represented by this runtime instance.
Sourcepub fn config_entry_key(&self) -> Result<String, PluginError>
pub fn config_entry_key(&self) -> Result<String, PluginError>
Dotted-config-safe key for host-owned state belonging to this instance.
The versioned payload is a Base64URL encoding of the canonical JSON
tuple (package, capability, binding). It is derived on demand rather
than stored, and includes every identity dimension so two packages or
capability worlds can safely reuse the same binding name.
§Errors
Returns PluginError::InvalidInstanceId if the canonical identity
tuple cannot be serialized.
Trait Implementations§
Source§impl Clone for PluginInstanceId
impl Clone for PluginInstanceId
Source§fn clone(&self) -> PluginInstanceId
fn clone(&self) -> PluginInstanceId
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PluginInstanceId
impl Debug for PluginInstanceId
impl Eq for PluginInstanceId
Source§impl Hash for PluginInstanceId
impl Hash for PluginInstanceId
Source§impl PartialEq for PluginInstanceId
impl PartialEq for PluginInstanceId
Source§fn eq(&self, other: &PluginInstanceId) -> bool
fn eq(&self, other: &PluginInstanceId) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PluginInstanceId
Auto Trait Implementations§
impl Freeze for PluginInstanceId
impl RefUnwindSafe for PluginInstanceId
impl Send for PluginInstanceId
impl Sync for PluginInstanceId
impl Unpin for PluginInstanceId
impl UnsafeUnpin for PluginInstanceId
impl UnwindSafe for PluginInstanceId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.