copernica_packets/
hbfi_only_keys.rs

1use {
2    crate::{HBFI},
3    core::hash::{Hash, Hasher}
4};
5#[derive(Clone, Debug)]
6pub struct HBFIOnlyKeys(pub HBFI);
7impl Hash for HBFIOnlyKeys {
8    fn hash<H: Hasher>(&self, state: &mut H) {
9        self.0.request_pid.hash(state);
10        self.0.response_pid.hash(state);
11    }
12}
13impl PartialEq for HBFIOnlyKeys {
14    fn eq(&self, other: &Self) -> bool {
15        (self.0.request_pid == other.0.request_pid)
16        && (self.0.response_pid == other.0.response_pid)
17    }
18}
19impl Eq for HBFIOnlyKeys {}