copernica_packets/
hbfi_exclude_frame.rs

1use {
2    crate::{HBFI},
3    core::hash::{Hash, Hasher}
4};
5#[derive(Clone, Debug)]
6pub struct HBFIExcludeFrame(pub HBFI);
7impl Hash for HBFIExcludeFrame {
8    fn hash<H: Hasher>(&self, state: &mut H) {
9        self.0.request_pid.hash(state);
10        self.0.response_pid.hash(state);
11        self.0.req.hash(state);
12        self.0.res.hash(state);
13        self.0.app.hash(state);
14        self.0.m0d.hash(state);
15        self.0.fun.hash(state);
16        self.0.arg.hash(state)
17    }
18}
19impl PartialEq for HBFIExcludeFrame {
20    fn eq(&self, other: &Self) -> bool {
21        (self.0.request_pid == other.0.request_pid)
22        && (self.0.response_pid == other.0.response_pid)
23        && (self.0.req == other.0.req)
24        && (self.0.res == other.0.res)
25        && (self.0.app == other.0.app)
26        && (self.0.m0d == other.0.m0d)
27        && (self.0.fun == other.0.fun)
28        && (self.0.arg == other.0.arg)
29    }
30}
31impl Eq for HBFIExcludeFrame {}