Struct opcua_server::metrics::ServerMetrics
source · [−]pub struct ServerMetrics {
pub server: Server,
pub diagnostics: ServerDiagnostics,
pub config: Option<ServerConfig>,
pub connections: Vec<Connection>,
pub runtime_components: Vec<String>,
}
Fields
server: Server
diagnostics: ServerDiagnostics
config: Option<ServerConfig>
connections: Vec<Connection>
runtime_components: Vec<String>
Implementations
sourceimpl ServerMetrics
impl ServerMetrics
pub fn new() -> ServerMetrics
pub fn set_server_info(&mut self, server: &Server)
pub fn update_from_server_state(&mut self, server_state: &ServerState)
pub fn update_from_connections(&mut self, connections: Connections)
Trait Implementations
sourceimpl Default for ServerMetrics
impl Default for ServerMetrics
sourceimpl Serialize for ServerMetrics
impl Serialize for ServerMetrics
Auto Trait Implementations
impl RefUnwindSafe for ServerMetrics
impl Send for ServerMetrics
impl Sync for ServerMetrics
impl Unpin for ServerMetrics
impl UnwindSafe for ServerMetrics
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