pub struct ExecComponent { /* private fields */ }Expand description
Factory for exec:{profile-name} endpoints.
Holds the validated global config (including startup-pinned canonical
workspace root) and creates ExecEndpoint instances that resolve to
the named profile.
Implementations§
Source§impl ExecComponent
impl ExecComponent
Sourcepub fn new(config: ExecGlobalConfig) -> Self
pub fn new(config: ExecGlobalConfig) -> Self
Create a new ExecComponent from global config.
The config should already be validated via
ExecGlobalConfig::validate() (the ExecBundle does this during
from_toml).
Trait Implementations§
Source§impl Component for ExecComponent
impl Component for ExecComponent
Source§fn create_endpoint(
&self,
uri: &str,
_ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri: &str, _ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Create an endpoint from a URI string.
Auto Trait Implementations§
impl Freeze for ExecComponent
impl RefUnwindSafe for ExecComponent
impl Send for ExecComponent
impl Sync for ExecComponent
impl Unpin for ExecComponent
impl UnsafeUnpin for ExecComponent
impl UnwindSafe for ExecComponent
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