Lines Matching refs:EventCode
22 CommandExpectations, CommandPacket, ErrorCode, EventCode, EventPacket, LeMetaEventPacket,
124 evt_handlers: Arc<Mutex<HashMap<EventCode, Sender<EventPacket>>>>,
130 pub async fn register(&mut self, code: EventCode, sender: Sender<EventPacket>) { in register() argument
132 EventCode::CommandStatus in register()
133 | EventCode::CommandComplete in register()
134 | EventCode::LeMetaEvent in register()
135 | EventCode::PageScanRepetitionModeChange in register()
136 | EventCode::MaxSlotsChange in register()
137 | EventCode::VendorSpecific => panic!("{:?} is a protected event", code), in register()
149 pub async fn unregister(&mut self, code: EventCode) { in unregister() argument
169 evt_handlers: Arc<Mutex<HashMap<EventCode, Sender<EventPacket>>>>, in dispatch() argument
229 None if code == EventCode::NumberOfCompletedPackets =>{}, in dispatch()