isClosed reports whether the device is closed (or is closing). See device.state.state comments for how to interpret this value.
()
| 120 | // isClosed reports whether the device is closed (or is closing). |
| 121 | // See device.state.state comments for how to interpret this value. |
| 122 | func (device *Device) isClosed() bool { |
| 123 | return device.deviceState() == deviceStateClosed |
| 124 | } |
| 125 | |
| 126 | // isUp reports whether the device is up (or is attempting to come up). |
| 127 | // See device.state.state comments for how to interpret this value. |
no test coverage detected