pub struct HostEventCatalog { /* private fields */ }Implementations§
Source§impl HostEventCatalog
impl HostEventCatalog
pub fn new() -> Self
pub fn declare(&mut self, event: HostEvent) -> Result<(), String>
pub fn from_events( events: impl IntoIterator<Item = HostEvent>, ) -> Result<Self, String>
pub fn get( &self, resource_type: &str, alias: &str, event: &str, ) -> Option<&HostEvent>
pub fn is_empty(&self) -> bool
pub fn events(&self) -> impl Iterator<Item = &HostEvent>
Trait Implementations§
Source§impl Clone for HostEventCatalog
impl Clone for HostEventCatalog
Source§fn clone(&self) -> HostEventCatalog
fn clone(&self) -> HostEventCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostEventCatalog
impl Debug for HostEventCatalog
Source§impl Default for HostEventCatalog
impl Default for HostEventCatalog
Source§fn default() -> HostEventCatalog
fn default() -> HostEventCatalog
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HostEventCatalog
impl<'de> Deserialize<'de> for HostEventCatalog
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HostEventCatalog
Source§impl PartialEq for HostEventCatalog
impl PartialEq for HostEventCatalog
Source§fn eq(&self, other: &HostEventCatalog) -> bool
fn eq(&self, other: &HostEventCatalog) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostEventCatalog
impl Serialize for HostEventCatalog
impl StructuralPartialEq for HostEventCatalog
Auto Trait Implementations§
impl Freeze for HostEventCatalog
impl RefUnwindSafe for HostEventCatalog
impl Send for HostEventCatalog
impl Sync for HostEventCatalog
impl Unpin for HostEventCatalog
impl UnsafeUnpin for HostEventCatalog
impl UnwindSafe for HostEventCatalog
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