Struct CommunicationInterface
pub struct CommunicationInterface { /* private fields */ }Expand description
Unified communication interface that provides all communication components through a single configuration-based interface
Implementations§
§impl CommunicationInterface
impl CommunicationInterface
pub fn new() -> CommunicationInterface
pub fn new() -> CommunicationInterface
Create a new communication interface with default configuration
pub fn with_config(config: CommunicationConfig) -> CommunicationInterface
pub fn with_config(config: CommunicationConfig) -> CommunicationInterface
Create a new communication interface with custom configuration
pub fn router(&self) -> &dyn MessageRouter
pub fn router(&self) -> &dyn MessageRouter
Get the message router
pub fn subscriber(&self) -> &dyn Subscriber
pub fn subscriber(&self) -> &dyn Subscriber
Get the subscriber (immutable)
pub fn subscriber_mut(&mut self) -> &mut dyn Subscriber
pub fn subscriber_mut(&mut self) -> &mut dyn Subscriber
Get the subscriber (mutable)
pub fn request_response(&self) -> &dyn RequestResponse
pub fn request_response(&self) -> &dyn RequestResponse
Get the request-response component
pub fn subscription_manager(&self) -> &dyn SubscriptionManager
pub fn subscription_manager(&self) -> &dyn SubscriptionManager
Get the subscription manager
Trait Implementations§
§impl Default for CommunicationInterface
impl Default for CommunicationInterface
§fn default() -> CommunicationInterface
fn default() -> CommunicationInterface
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommunicationInterface
impl !RefUnwindSafe for CommunicationInterface
impl Send for CommunicationInterface
impl Sync for CommunicationInterface
impl Unpin for CommunicationInterface
impl !UnwindSafe for CommunicationInterface
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