Lines Matching refs:State
22 enum State { enum
36 state: Arc<Mutex<State>>,
44 state: Arc::new(Mutex::new(State::Closed)), in new()
49 impl State { implementation
52 if let State::Opened { in close()
85 *self = State::Closed; in close()
143 if matches!(*state, State::Opened { .. }) { in open()
161 if let State::Opened { ref mut token, .. } = *state { in open()
163 *state = State::Closed; in open()
251 *state = State::Opened { in open()
267 if let State::Opened { .. } = *state { in close()
277 if let State::Opened { ref callbacks, .. } = *self.state.lock().await { in coreInit()
298 if let State::Opened { ref mut serial, .. } = &mut *self.state.lock().await { in sendUciMessage()