#[non_exhaustive]pub enum SignalMatcher {
ByName(String),
Wildcard,
}Expand description
v1 signal-match predicate inside ResumeCondition::Single.
RFC-013 §2.4 — ByName(String) matches a single concrete signal
name; Wildcard matches any delivered signal. RFC-014 may extend
(payload predicates, pattern matching) — #[non_exhaustive].
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SignalMatcher
impl Clone for SignalMatcher
Source§fn clone(&self) -> SignalMatcher
fn clone(&self) -> SignalMatcher
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 SignalMatcher
impl Debug for SignalMatcher
Source§impl<'de> Deserialize<'de> for SignalMatcher
impl<'de> Deserialize<'de> for SignalMatcher
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
Source§impl PartialEq for SignalMatcher
impl PartialEq for SignalMatcher
Source§impl Serialize for SignalMatcher
impl Serialize for SignalMatcher
impl Eq for SignalMatcher
impl StructuralPartialEq for SignalMatcher
Auto Trait Implementations§
impl Freeze for SignalMatcher
impl RefUnwindSafe for SignalMatcher
impl Send for SignalMatcher
impl Sync for SignalMatcher
impl Unpin for SignalMatcher
impl UnsafeUnpin for SignalMatcher
impl UnwindSafe for SignalMatcher
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