pub struct CapabilityRegistry { /* private fields */ }Implementations§
Source§impl CapabilityRegistry
impl CapabilityRegistry
pub fn new(harness: Harness) -> Self
pub fn descriptors(&self) -> &[CapabilityDescriptor]
pub fn names(&self) -> Vec<String>
pub fn invoke_value(&self, name: &str, args: Value) -> Result<Value>
pub fn invoke_value_with_origin( &self, name: &str, args: Value, origin: InvocationOrigin, ) -> Result<Value>
pub fn invoke_value_with_context( &self, name: &str, args: Value, context: InvocationContext, ) -> Result<Value>
Trait Implementations§
Source§impl Clone for CapabilityRegistry
impl Clone for CapabilityRegistry
Source§fn clone(&self) -> CapabilityRegistry
fn clone(&self) -> CapabilityRegistry
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CapabilityRegistry
impl !UnwindSafe for CapabilityRegistry
impl Freeze for CapabilityRegistry
impl Send for CapabilityRegistry
impl Sync for CapabilityRegistry
impl Unpin for CapabilityRegistry
impl UnsafeUnpin for CapabilityRegistry
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