pub struct ExternalIntegrationManager { /* private fields */ }Expand description
External integration manager that handles connections to external tools
Implementations§
Source§impl ExternalIntegrationManager
impl ExternalIntegrationManager
Sourcepub fn register_integration(
&mut self,
name: &str,
integration: Arc<dyn ExternalIntegration + Send + Sync>,
config: IntegrationConfig,
) -> SklResult<()>
pub fn register_integration( &mut self, name: &str, integration: Arc<dyn ExternalIntegration + Send + Sync>, config: IntegrationConfig, ) -> SklResult<()>
Register an external integration
Sourcepub fn get_integration(
&self,
name: &str,
) -> Option<&Arc<dyn ExternalIntegration + Send + Sync>>
pub fn get_integration( &self, name: &str, ) -> Option<&Arc<dyn ExternalIntegration + Send + Sync>>
Get an integration by name
Sourcepub fn send_data(
&mut self,
integration_name: &str,
data: &IntegrationData,
) -> SklResult<IntegrationResponse>
pub fn send_data( &mut self, integration_name: &str, data: &IntegrationData, ) -> SklResult<IntegrationResponse>
Send data through an integration with fault tolerance
Sourcepub fn receive_data(
&mut self,
integration_name: &str,
request: &IntegrationRequest,
) -> SklResult<IntegrationData>
pub fn receive_data( &mut self, integration_name: &str, request: &IntegrationRequest, ) -> SklResult<IntegrationData>
Receive data through an integration with fault tolerance
Sourcepub fn execute_operation(
&mut self,
integration_name: &str,
operation: &Operation,
) -> SklResult<OperationResult>
pub fn execute_operation( &mut self, integration_name: &str, operation: &Operation, ) -> SklResult<OperationResult>
Execute an operation through an integration
Sourcepub fn health_check_all(&self) -> HashMap<String, HealthStatus>
pub fn health_check_all(&self) -> HashMap<String, HealthStatus>
Check health of all integrations
Trait Implementations§
Source§impl Clone for ExternalIntegrationManager
impl Clone for ExternalIntegrationManager
Source§fn clone(&self) -> ExternalIntegrationManager
fn clone(&self) -> ExternalIntegrationManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalIntegrationManager
impl Debug for ExternalIntegrationManager
Auto Trait Implementations§
impl Freeze for ExternalIntegrationManager
impl !RefUnwindSafe for ExternalIntegrationManager
impl Send for ExternalIntegrationManager
impl Sync for ExternalIntegrationManager
impl Unpin for ExternalIntegrationManager
impl !UnwindSafe for ExternalIntegrationManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 more