pub struct EventKlassRegistry { /* private fields */ }
Implementations§
Source§impl EventKlassRegistry
impl EventKlassRegistry
pub fn new() -> EventKlassRegistry
pub fn add_klass(&mut self, klass: EventKlass)
pub fn get_klass_by_id(&self, id: u32) -> Option<&EventKlass>
pub fn get_klass_by_id_mut(&mut self, id: u32) -> Option<&mut EventKlass>
pub fn get_klass_by_name(&self, name: &str) -> Option<&EventKlass>
Trait Implementations§
Source§impl Default for EventKlassRegistry
impl Default for EventKlassRegistry
Source§fn default() -> EventKlassRegistry
fn default() -> EventKlassRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventKlassRegistry
impl RefUnwindSafe for EventKlassRegistry
impl Send for EventKlassRegistry
impl Sync for EventKlassRegistry
impl Unpin for EventKlassRegistry
impl UnwindSafe for EventKlassRegistry
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