1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use crate::{configuration, service}; /// The main handle to start service connections from. #[derive(Clone, Default)] pub struct Handle { pub(in crate) config: configuration::Handle } impl Handle { pub fn new( config: configuration::Handle ) -> Self { Self { config } } pub fn service( &self, service: &str ) -> service::Service { let unixpath = self.config.get_value_filename( service, "UNIXPATH" ); service::Service::new( unixpath ) } }