pub enum Topic<T> {
Any,
OneOf(Vec<T>),
This(T),
}
Expand description
Acceptable topic possibilities.
Variants
Any
Match any.
OneOf(Vec<T>)
Match any of the hashes.
This(T)
Match only this hash.
Implementations
Trait Implementations
sourceimpl<T: PartialEq> PartialEq<Topic<T>> for Topic<T>
impl<T: PartialEq> PartialEq<Topic<T>> for Topic<T>
impl<T: Eq> Eq for Topic<T>
impl<T> StructuralEq for Topic<T>
impl<T> StructuralPartialEq for Topic<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Topic<T>where
T: RefUnwindSafe,
impl<T> Send for Topic<T>where
T: Send,
impl<T> Sync for Topic<T>where
T: Sync,
impl<T> Unpin for Topic<T>where
T: Unpin,
impl<T> UnwindSafe for Topic<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more