pub struct NativeExecutorConfig {
pub worker_threads: usize,
}Expand description
Configuration for the executor owned by one exported native plugin.
Fields§
§worker_threads: usizeNumber of Tokio worker threads dedicated to the plugin.
Implementations§
Source§impl NativeExecutorConfig
impl NativeExecutorConfig
Sourcepub fn with_component_config(
self,
plugin_config: &Map<String, Json>,
) -> Result<Self>
pub fn with_component_config( self, plugin_config: &Map<String, Json>, ) -> Result<Self>
Applies an optional component-local executor override.
Relay passes [plugins.dynamic.config.executor] as the executor
object in plugin_config. The only supported setting is the positive
integer worker_threads.
Trait Implementations§
Source§impl Clone for NativeExecutorConfig
impl Clone for NativeExecutorConfig
Source§fn clone(&self) -> NativeExecutorConfig
fn clone(&self) -> NativeExecutorConfig
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 moreimpl Copy for NativeExecutorConfig
Source§impl Debug for NativeExecutorConfig
impl Debug for NativeExecutorConfig
Source§impl Default for NativeExecutorConfig
impl Default for NativeExecutorConfig
impl Eq for NativeExecutorConfig
Source§impl PartialEq for NativeExecutorConfig
impl PartialEq for NativeExecutorConfig
impl StructuralPartialEq for NativeExecutorConfig
Auto Trait Implementations§
impl Freeze for NativeExecutorConfig
impl RefUnwindSafe for NativeExecutorConfig
impl Send for NativeExecutorConfig
impl Sync for NativeExecutorConfig
impl Unpin for NativeExecutorConfig
impl UnsafeUnpin for NativeExecutorConfig
impl UnwindSafe for NativeExecutorConfig
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