/// Creates a new peripherals store.
Creates a new peripherals store.
Creates a new peripherals store .
fn new() -> Self {
        Self {
            peripherals: HashMap::new(),
            events_queue: VecDeque::new(),
            listening_promise: None,
        }
    }
fn new ( ) -> Self { Self { peripherals : HashMap :: new ( ) , events_queue : VecDeque :: new ( ) , listening_promise : None , } }
Creates a new peripherals store.
Creates a new peripherals store .