[][src]Struct parsec_service::utils::ServiceBuilder

pub struct ServiceBuilder;

Service component builder and assembler

Entity responsible for converting a Parsec service configuration into a fully formed service. Each component is independently created after which its ownership can be passed to the previous component in the ownership chain. The service's ownership is then passed in the form of ownership of a FrontEndHandler instance.

Implementations

impl ServiceBuilder[src]

pub fn build_service(config: &ServiceConfig) -> Result<FrontEndHandler>[src]

Evaluate the provided configuration and assemble a service based on it. If the configuration contains any errors or inconsistencies, an Err is returned.

Errors

  • if any of the fields specified in the configuration are inconsistent (e.g. key info manager with name 'X' requested for a certain provider does not exist) or if required fields are missing, an error of kind InvalidData is returned with a string describing the cause more accurately.

pub fn start_listener(config: ListenerConfig) -> Result<Box<dyn Listen>>[src]

Construct the service IPC front component and return ownership to it.

pub fn build_threadpool(num_threads: Option<usize>) -> ThreadPool[src]

Construct the thread pool that will be used to process all service requests.

Trait Implementations

impl Clone for ServiceBuilder[src]

impl Copy for ServiceBuilder[src]

impl Debug for ServiceBuilder[src]

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> Free for T

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,