pub struct CommunicationComponentAdapter { /* private fields */ }Expand description
Adapter that converts CommunicationManager to PluginCommunicationComponent
Implementations§
Source§impl CommunicationComponentAdapter
impl CommunicationComponentAdapter
pub fn new(component: Arc<CommunicationManager>) -> Self
Trait Implementations§
Source§impl NerveComponent for CommunicationComponentAdapter
impl NerveComponent for CommunicationComponentAdapter
Source§fn id(&self) -> &ComponentId
fn id(&self) -> &ComponentId
Get component identifier
Source§fn component_type(&self) -> ComponentType
fn component_type(&self) -> ComponentType
Get component type
Source§fn is_healthy(&self) -> bool
fn is_healthy(&self) -> bool
Check if component is healthy
Source§fn get_statistics(&self) -> SystemStatistics
fn get_statistics(&self) -> SystemStatistics
Get component statistics
Source§fn reset_statistics(&mut self)
fn reset_statistics(&mut self)
Reset component statistics
Source§fn shutdown(&mut self) -> NerveResult<()>
fn shutdown(&mut self) -> NerveResult<()>
Shutdown the component
Source§impl PluginCommunicationComponent for CommunicationComponentAdapter
impl PluginCommunicationComponent for CommunicationComponentAdapter
Source§fn message_throughput(&self) -> f64
fn message_throughput(&self) -> f64
Get message throughput (messages per second)
Source§fn error_rate(&self) -> f64
fn error_rate(&self) -> f64
Get error rate percentage
Auto Trait Implementations§
impl Freeze for CommunicationComponentAdapter
impl RefUnwindSafe for CommunicationComponentAdapter
impl Send for CommunicationComponentAdapter
impl Sync for CommunicationComponentAdapter
impl Unpin for CommunicationComponentAdapter
impl UnwindSafe for CommunicationComponentAdapter
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