[][src]Struct splinter::orchestrator::ServiceOrchestrator

pub struct ServiceOrchestrator { /* fields omitted */ }

The ServiceOrchestrator manages initialization and shutdown of services.

Methods

impl ServiceOrchestrator[src]

pub fn new(
    service_factories: Vec<Box<dyn ServiceFactory>>,
    connection: Box<dyn Connection>,
    incoming_capacity: usize,
    outgoing_capacity: usize,
    channel_capacity: usize
) -> Result<Self, NewOrchestratorError>
[src]

Create a new ServiceOrchestrator. This starts up 3 threads for relaying messages to and from services.

pub fn initialize_service(
    &self,
    service_definition: ServiceDefinition,
    args: HashMap<String, String>
) -> Result<(), InitializeServiceError>
[src]

Initialize (create and start) a service according to the specified definition. The arguments provided must match those required to create the service.

pub fn shutdown_service(
    &self,
    service_definition: &ServiceDefinition
) -> Result<(), ShutdownServiceError>
[src]

Shut down (stop and destroy) the specified service.

pub fn list_services(
    &self,
    circuits: Vec<String>,
    service_types: Vec<String>
) -> Result<Vec<ServiceDefinition>, ListServicesError>
[src]

List services managed by this ServiceOrchestrator; filters may be provided to only show services on specified circuit(s) and of given service type(s).

pub fn supported_service_types(&self) -> &[String][src]

pub fn destroy(self) -> Result<(), OrchestratorError>[src]

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,