pub struct Initial { /* private fields */ }
Expand description
Initial properties for services
Implementations§
Source§impl Initial
impl Initial
pub fn new( id: &str, system_name: &str, command: &str, prepare_command: Option<&str>, data_path: &str, timeout: &Timeout, core_info: CoreInfo, bus: BusConfig, config: Option<&Value>, workers: u32, user: Option<&str>, react_to_fail: bool, fips: bool, call_tracing: bool, ) -> Self
pub fn with_realtime(self, realtime: RealtimeConfig) -> Self
pub fn init(&self) -> EResult<()>
pub fn config_version(&self) -> u16
pub fn system_name(&self) -> &str
pub fn id(&self) -> &str
pub fn command(&self) -> &str
pub fn realtime(&self) -> &RealtimeConfig
pub fn prepare_command(&self) -> Option<&str>
pub fn user(&self) -> Option<&str>
pub fn set_user(&mut self, user: Option<&str>)
pub fn set_id(&mut self, id: &str)
pub fn data_path(&self) -> Option<&str>
pub fn planned_data_path(&self) -> &str
pub fn set_data_path(&mut self, path: &str)
pub fn timeout(&self) -> Duration
pub fn startup_timeout(&self) -> Duration
pub fn shutdown_timeout(&self) -> Duration
pub fn bus_timeout(&self) -> Duration
pub fn eva_build(&self) -> u64
pub fn eva_version(&self) -> &str
pub fn eapi_version(&self) -> u16
pub fn eva_dir(&self) -> &str
pub fn eva_log_level(&self) -> u8
pub fn core_active(&self) -> bool
pub fn call_tracing(&self) -> bool
pub fn eva_log_level_filter(&self) -> LevelFilter
pub fn bus_config(&self) -> EResult<Config>
pub fn bus_config_for_sub(&self, sub_id: &str) -> EResult<Config>
pub fn set_bus_path(&mut self, path: &str)
pub fn bus_path(&self) -> &str
pub fn config(&self) -> Option<&Value>
pub async fn extend_config( &mut self, timeout: Duration, base: &Path, ) -> EResult<()>
pub fn workers(&self) -> u32
pub fn bus_queue_size(&self) -> usize
pub fn take_config(&mut self) -> Option<Value>
pub async fn init_rpc<R>(&self, handlers: R) -> EResult<Arc<RpcClient>>
pub async fn init_rpc_blocking<R>(&self, handlers: R) -> EResult<Arc<RpcClient>>
pub async fn init_rpc_blocking_with_secondary<R>( &self, handlers: R, ) -> EResult<(Arc<RpcClient>, Arc<RpcClient>)>
pub async fn init_rpc_opts<R>( &self, handlers: R, opts: Options, ) -> EResult<Arc<RpcClient>>
pub async fn init_bus_client(&self) -> EResult<Client>
pub async fn init_bus_client_sub(&self, sub_id: &str) -> EResult<Client>
pub fn init_registry(&self, rpc: &Arc<RpcClient>) -> Registry
pub fn can_rtf(&self) -> bool
pub fn is_mode_normal(&self) -> bool
pub fn is_mode_rtf(&self) -> bool
pub fn set_fail_mode(&self, mode: bool)
pub fn drop_privileges(&self) -> EResult<()>
pub fn into_legacy_compat(self) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Initial
impl<'de> Deserialize<'de> for Initial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for Initial
impl RefUnwindSafe for Initial
impl Send for Initial
impl Sync for Initial
impl Unpin for Initial
impl UnwindSafe for Initial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more