pub struct ProducerConfig<'a, T> {
pub producer: &'a mut T,
pub events: Vec<EventType>,
}
Expand description
Configuration for an event producer.
Fields§
§producer: &'a mut T
The event producer that will receive a Dispatcher
events: Vec<EventType>
The set of events that the producer
will be allowed to emit.
Auto Trait Implementations§
impl<'a, T> Freeze for ProducerConfig<'a, T>
impl<'a, T> RefUnwindSafe for ProducerConfig<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ProducerConfig<'a, T>where
T: Send,
impl<'a, T> Sync for ProducerConfig<'a, T>where
T: Sync,
impl<'a, T> Unpin for ProducerConfig<'a, T>
impl<'a, T> !UnwindSafe for ProducerConfig<'a, T>
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