pub struct ComponentHandle(pub String);Expand description
Opaque handle to a loaded component instance.
Deliberately a plain newtype over String, not exposing any
engine-internal state, so this port stays independent of whatever the
concrete engine uses to key its own cache/pool internally. Callers must
treat it as an unstructured token: construct it only from a
crate::CapabilityEngine::load response, never by hand.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for ComponentHandle
impl Clone for ComponentHandle
Source§fn clone(&self) -> ComponentHandle
fn clone(&self) -> ComponentHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentHandle
impl Debug for ComponentHandle
Source§impl<'de> Deserialize<'de> for ComponentHandle
impl<'de> Deserialize<'de> for ComponentHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComponentHandle
Source§impl Hash for ComponentHandle
impl Hash for ComponentHandle
Source§impl PartialEq for ComponentHandle
impl PartialEq for ComponentHandle
Source§impl Serialize for ComponentHandle
impl Serialize for ComponentHandle
impl StructuralPartialEq for ComponentHandle
Auto Trait Implementations§
impl Freeze for ComponentHandle
impl RefUnwindSafe for ComponentHandle
impl Send for ComponentHandle
impl Sync for ComponentHandle
impl Unpin for ComponentHandle
impl UnsafeUnpin for ComponentHandle
impl UnwindSafe for ComponentHandle
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