[−][src]Struct parsec_service::utils::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
InvalidDatais 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]
fn clone(&self) -> ServiceBuilder[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ServiceBuilder[src]
impl Debug for ServiceBuilder[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnwindSafe for ServiceBuilder
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> Free for T
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,