pub struct ServiceEventPattern {
pub service: ServiceNamePat,
pub event: EventPat,
}Fields§
§service: ServiceNamePat§event: EventPatImplementations§
Source§impl ServiceEventPattern
impl ServiceEventPattern
pub fn exact(service: impl Into<String>, event: ServiceEventKind) -> Self
pub fn matches(&self, path: &str, event: &ServiceEventKind) -> bool
Trait Implementations§
Source§impl Clone for ServiceEventPattern
impl Clone for ServiceEventPattern
Source§fn clone(&self) -> ServiceEventPattern
fn clone(&self) -> ServiceEventPattern
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceEventPattern
impl Debug for ServiceEventPattern
Source§impl Hash for ServiceEventPattern
impl Hash for ServiceEventPattern
Source§impl PartialEq for ServiceEventPattern
impl PartialEq for ServiceEventPattern
impl Eq for ServiceEventPattern
impl StructuralPartialEq for ServiceEventPattern
Auto Trait Implementations§
impl Freeze for ServiceEventPattern
impl RefUnwindSafe for ServiceEventPattern
impl Send for ServiceEventPattern
impl Sync for ServiceEventPattern
impl Unpin for ServiceEventPattern
impl UnwindSafe for ServiceEventPattern
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