MCPcopy Create free account
hub / github.com/encodeous/nylon / deviceState

Method deviceState

polyamide/device/device.go:116–118  ·  view source on GitHub ↗

deviceState returns device.state.state as a deviceState See those docs for how to interpret this value.

()

Source from the content-addressed store, hash-verified

114// deviceState returns device.state.state as a deviceState
115// See those docs for how to interpret this value.
116func (device *Device) deviceState() deviceState {
117 return deviceState(device.state.state.Load())
118}
119
120// isClosed reports whether the device is closed (or is closing).
121// See device.state.state comments for how to interpret this value.

Callers 3

isClosedMethod · 0.95
isUpMethod · 0.95
changeStateMethod · 0.95

Implementers 4

NativeTunpolyamide/tun/tun_linux.go
netTunpolyamide/tun/netstack/tun.go
chTunpolyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSizedpolyamide/device/device_test.go

Calls 1

deviceStateTypeAlias · 0.85

Tested by

no test coverage detected