Struct wasmcloud_host::NativeCapability[][src]

pub struct NativeCapability { /* fields omitted */ }
Expand description

Represents a native capability provider compiled as a shared object library. These plugins are OS- and architecture-specific, so they will be .so files on Linux, .dylib files on macOS, .dll files on Windows, etc.

Implementations

Reads a capability provider from an archive file. The right architecture/OS plugin library will be chosen from the file, or an error will result if it isn’t found. This call will fail if the archive does not contain a suitable plugin for the CPU architecture/OS of the caller.

This function is to be used for capability embedding. If you are building a custom wasmCloud host and have a fixed set of capabilities that you want to always be available to actors, then you can declare a dependency on the capability provider, enable the static_plugin feature, and provide an instance of that provider. Be sure to check that the provider supports capability embedding. You must also provide a set of valid claims that can be generated from a signed JWT.

Returns the unique ID (public key/subject) of the capability provider

Returns the path where this capability provider’s binary resides/should reside for cache purposes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.