[−][src]Struct splinter::orchestrator::ServiceOrchestrator
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]
service_factories: Vec<Box<dyn ServiceFactory>>,
connection: Box<dyn Connection>,
incoming_capacity: usize,
outgoing_capacity: usize,
channel_capacity: usize
) -> Result<Self, NewOrchestratorError>
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]
&self,
service_definition: ServiceDefinition,
args: HashMap<String, String>
) -> Result<(), InitializeServiceError>
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]
&self,
service_definition: &ServiceDefinition
) -> Result<(), ShutdownServiceError>
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]
&self,
circuits: Vec<String>,
service_types: Vec<String>
) -> Result<Vec<ServiceDefinition>, ListServicesError>
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
impl !RefUnwindSafe for ServiceOrchestrator
impl Send for ServiceOrchestrator
impl !Sync for ServiceOrchestrator
impl Unpin for ServiceOrchestrator
impl !UnwindSafe for ServiceOrchestrator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,