Struct eva_common::services::Initial
source · [−]pub struct Initial { /* private fields */ }
Expand description
Initial properties for services
Implementations
sourceimpl 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
) -> Self
pub fn config_version(&self) -> u16
pub fn system_name(&self) -> &str
pub fn id(&self) -> &str
pub fn command(&self) -> &str
pub fn prepare_command(&self) -> Option<&str>
pub fn user(&self) -> Option<&str>
pub fn data_path(&self) -> Option<&str>
pub fn planned_data_path(&self) -> &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 eva_log_level_filter(&self) -> LevelFilter
pub fn elbus_config(&self) -> EResult<Config>
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 elbus_queue_size(&self) -> usize
pub fn take_config(&mut self) -> Option<Value>
pub async fn init_rpc<R>(&self, handlers: R) -> EResult<Arc<RpcClient>> where
R: RpcHandlers + Send + Sync + 'static,
pub async fn init_rpc_blocking<R>(&self, handlers: R) -> EResult<Arc<RpcClient>> where
R: RpcHandlers + Send + Sync + 'static,
pub async fn init_rpc_opts<R>(
&self,
handlers: R,
opts: Options
) -> EResult<Arc<RpcClient>> where
R: RpcHandlers + Send + Sync + 'static,
pub async fn init_bus_client(&self) -> 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<()>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Initial
impl<'de> Deserialize<'de> for Initial
sourcefn 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 RefUnwindSafe for Initial
impl Send for Initial
impl Sync for Initial
impl Unpin for Initial
impl UnwindSafe for Initial
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more