verification reply handling working

This commit is contained in:
2022-09-11 14:51:25 +02:00
parent a261f15589
commit ab2fa4c050
4 changed files with 78 additions and 73 deletions

View File

@ -74,6 +74,7 @@
use alloc::boxed::Box;
use alloc::vec;
use alloc::vec::Vec;
use core::fmt::{Display, Formatter};
use core::hash::{Hash, Hasher};
use core::marker::PhantomData;
use core::mem::size_of;
@ -101,6 +102,12 @@ pub struct RequestId {
psc: PacketSequenceCtrl,
}
impl Display for RequestId {
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
write!(f, "Request ID {:#08x}", self.raw())
}
}
impl Hash for RequestId {
fn hash<H: Hasher>(&self, state: &mut H) {
self.raw().hash(state);