pub struct ObserverConfig<ML, ES>{
pub subject_config: ES::Config,
pub broker_config: ML::Config,
}
Expand description
A structure representing a configuration for an observer that includes an event subject and a message broker.
Fields§
§subject_config: ES::Config
Configuration for the event subject.
broker_config: ML::Config
Configuration for the message broker.
Implementations§
source§impl<ML, ES> ObserverConfig<ML, ES>
impl<ML, ES> ObserverConfig<ML, ES>
sourcepub const fn subject_config(&self) -> &ES::Config
pub const fn subject_config(&self) -> &ES::Config
Provides the configuration for the Event Subject.
sourcepub const fn listener_config(&self) -> &ML::Config
pub const fn listener_config(&self) -> &ML::Config
Provides the configuration for the Message Listener.
Trait Implementations§
Auto Trait Implementations§
impl<ML, ES> Freeze for ObserverConfig<ML, ES>
impl<ML, ES> RefUnwindSafe for ObserverConfig<ML, ES>
impl<ML, ES> Send for ObserverConfig<ML, ES>
impl<ML, ES> Sync for ObserverConfig<ML, ES>
impl<ML, ES> Unpin for ObserverConfig<ML, ES>
impl<ML, ES> UnwindSafe for ObserverConfig<ML, ES>
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