pub struct Features { /* private fields */ }Expand description
Feature flags to enable experimental functionality in the host. Flags are disabled by default and must be explicitly enabled.
Implementations§
Source§impl Features
impl Features
Sourcepub fn enable_builtin_http_client(self) -> Self
pub fn enable_builtin_http_client(self) -> Self
Enable the built-in HTTP client capability provider
Sourcepub fn enable_builtin_http_server(self) -> Self
pub fn enable_builtin_http_server(self) -> Self
Enable the built-in HTTP server capability provider
Sourcepub fn enable_builtin_messaging_nats(self) -> Self
pub fn enable_builtin_messaging_nats(self) -> Self
Enable the built-in NATS messaging capability provider
Sourcepub fn enable_wasmcloud_messaging_v3(self) -> Self
pub fn enable_wasmcloud_messaging_v3(self) -> Self
Enable the wasmcloud:messaging@v3 interface support in the host
Sourcepub fn enable_workload_identity_auth(self) -> Self
pub fn enable_workload_identity_auth(self) -> Self
Enable using workload identity for authenticating with NATS in the host
Sourcepub fn enable_workload_identity_interface(self) -> Self
pub fn enable_workload_identity_interface(self) -> Self
Enable wasmcloud:identity interface support in the runtime
Sourcepub fn enable_rpc_interface(self) -> Self
pub fn enable_rpc_interface(self) -> Self
Enable wrpc:rpc interface support in the runtime
Sourcepub fn builtin_http_server_enabled(&self) -> bool
pub fn builtin_http_server_enabled(&self) -> bool
Check if the built-in HTTP server capability provider is enabled
Sourcepub fn builtin_messaging_nats_enabled(&self) -> bool
pub fn builtin_messaging_nats_enabled(&self) -> bool
Check if the built-in NATS messaging capability provider is enabled
Sourcepub fn wasmcloud_messaging_v3_enabled(&self) -> bool
pub fn wasmcloud_messaging_v3_enabled(&self) -> bool
Check if the wasmcloud:messaging@v3 interface support is enabled
Sourcepub fn workload_identity_auth_enabled(&self) -> bool
pub fn workload_identity_auth_enabled(&self) -> bool
Check if workload identity authentication is enabled
Sourcepub fn workload_identity_interface_enabled(&self) -> bool
pub fn workload_identity_interface_enabled(&self) -> bool
Check if the wasmcloud:identity interface support is enabled
Sourcepub fn rpc_interface_enabled(&self) -> bool
pub fn rpc_interface_enabled(&self) -> bool
Check if the wrpc:rpc interface support is enabled
Trait Implementations§
Source§impl From<&str> for Features
Parse a feature flag from a string, enabling the feature if the string matches
impl From<&str> for Features
Parse a feature flag from a string, enabling the feature if the string matches
impl Copy for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request