pub struct ConsumerConfig<'a, T> {
pub consumer: &'a Arc<T>,
pub events: Vec<EventType>,
}
Expand description
Configuration for an event consumer.
Fields§
§consumer: &'a Arc<T>
The event consumer that will receive events when they are emitted by producers.
events: Vec<EventType>
The set of event types that the consumer
will receive.
Auto Trait Implementations§
impl<'a, T> Freeze for ConsumerConfig<'a, T>
impl<'a, T> RefUnwindSafe for ConsumerConfig<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ConsumerConfig<'a, T>
impl<'a, T> Sync for ConsumerConfig<'a, T>
impl<'a, T> Unpin for ConsumerConfig<'a, T>
impl<'a, T> UnwindSafe for ConsumerConfig<'a, T>where
T: RefUnwindSafe,
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