pub struct EventParserRegistry { /* private fields */ }Expand description
Registry for service-specific event parsers
Implementations§
Source§impl EventParserRegistry
impl EventParserRegistry
Sourcepub fn register<P>(&mut self, parser: P)where
P: EventParser + 'static,
P::EventData: 'static,
pub fn register<P>(&mut self, parser: P)where
P: EventParser + 'static,
P::EventData: 'static,
Register a parser for a specific service
Sourcepub fn get_parser(&self, service: &Service) -> Option<&dyn EventParserDyn>
pub fn get_parser(&self, service: &Service) -> Option<&dyn EventParserDyn>
Get a parser for a specific service
Sourcepub fn has_parser(&self, service: &Service) -> bool
pub fn has_parser(&self, service: &Service) -> bool
Check if a parser is registered for a service
Sourcepub fn supported_services(&self) -> Vec<Service>
pub fn supported_services(&self) -> Vec<Service>
Get all registered service types
Trait Implementations§
Source§impl Default for EventParserRegistry
impl Default for EventParserRegistry
Source§fn default() -> EventParserRegistry
fn default() -> EventParserRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventParserRegistry
impl !RefUnwindSafe for EventParserRegistry
impl Send for EventParserRegistry
impl Sync for EventParserRegistry
impl Unpin for EventParserRegistry
impl UnsafeUnpin for EventParserRegistry
impl !UnwindSafe for EventParserRegistry
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