use std::ops::Deref;
pub type PayloadType = u64;
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct BusId(pub usize);
impl PartialEq<usize> for BusId {
fn eq(&self, other: &usize) -> bool {
self.0 == *other
}
}
impl Deref for BusId {
type Target = usize;
fn deref(&self) -> &Self::Target {
&self.0
}
}