MCPcopy Create free account
hub / github.com/emberian/evdev / from_raw_device

Method from_raw_device

src/sync_stream.rs:59–69  ·  view source on GitHub ↗

TODO: should this be public?

(raw: RawDevice)

Source from the content-addressed store, hash-verified

57
58 // TODO: should this be public?
59 pub(crate) fn from_raw_device(raw: RawDevice) -> Device {
60 let state = DeviceState::new(&raw);
61 let prev_state = state.clone();
62
63 Device {
64 raw,
65 prev_state,
66 state,
67 block_dropped: false,
68 }
69 }
70
71 /// Returns the synchronization engine's current understanding (cache) of the device state.
72 ///

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected