pub struct Struct {
pub(super) runtime: Arc<ApplicationRunTime>,
pub(super) ipc_server: Option<Arc<TauriIPCServer>>,
pub(super) status_history: Arc<Mutex<Vec<Struct>>>,
pub(super) start_time: SystemTime,
pub(super) error_count: Arc<Mutex<u32>>,
pub(super) performance_metrics: Arc<Mutex<Struct>>,
pub(super) health_monitor: Arc<Mutex<Struct>>,
pub(super) service_registry: Arc<RwLock<Struct>>,
pub(super) discovered_services: Arc<RwLock<HashSet<String>>>,
}Fields§
§runtime: Arc<ApplicationRunTime>§ipc_server: Option<Arc<TauriIPCServer>>§status_history: Arc<Mutex<Vec<Struct>>>§start_time: SystemTime§error_count: Arc<Mutex<u32>>§performance_metrics: Arc<Mutex<Struct>>§health_monitor: Arc<Mutex<Struct>>§service_registry: Arc<RwLock<Struct>>§discovered_services: Arc<RwLock<HashSet<String>>>Implementations§
Source§impl Struct
impl Struct
pub fn new(runtime: Arc<ApplicationRunTime>) -> Self
pub fn set_ipc_server(&mut self, ipc_server: Arc<TauriIPCServer>)
pub async fn generate_status_report(&self) -> Result<IPCStatusReport, String>
pub async fn report_to_sky(&self) -> Result<(), String>
pub async fn start_periodic_reporting( &self, interval_seconds: u64, ) -> Result<(), String>
pub fn record_error(&self)
pub fn get_status_history(&self) -> Result<Vec<IPCStatusReport>, String>
pub fn get_start_time(&self) -> SystemTime
pub async fn update_performance_metrics(&self) -> Result<(), String>
pub async fn perform_health_check(&self) -> Result<(), String>
async fn calculate_message_rate(&self) -> f64
async fn calculate_average_latency(&self) -> f64
async fn calculate_peak_latency(&self) -> f64
async fn calculate_compression_ratio(&self) -> f64
async fn calculate_pool_utilization(&self, stats: &ConnectionStats) -> f64
async fn get_memory_usage(&self) -> f64
async fn get_cpu_usage(&self) -> f64
pub async fn discover_services(&self) -> Result<Vec<ServiceInfo>, String>
fn get_service_dependencies(&self, service_name: &str) -> Vec<String>
async fn calculate_service_response_time(&self, service_name: &str) -> f64
async fn calculate_service_error_rate(&self, service_name: &str) -> f64
async fn calculate_service_throughput(&self, service_name: &str) -> f64
async fn get_service_memory_usage(&self, service_name: &str) -> f64
async fn get_service_cpu_usage(&self, service_name: &str) -> f64
pub async fn start_periodic_discovery(&self) -> Result<(), String>
pub async fn get_service_registry(&self) -> Result<ServiceRegistry, String>
pub async fn get_service_info( &self, service_name: &str, ) -> Result<Option<ServiceInfo>, String>
pub async fn attempt_recovery(&self) -> Result<(), String>
pub fn get_performance_metrics(&self) -> Result<PerformanceMetrics, String>
pub fn get_health_status(&self) -> Result<HealthMonitor, String>
pub(super) fn clone_reporter(&self) -> Struct
Auto Trait Implementations§
impl Freeze for Struct
impl !RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnsafeUnpin for Struct
impl !UnwindSafe for Struct
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].