Expand description
One object-safe polling contract for device I/O.
Traits§
- Base
Operations - Device operations return
Polldirectly, includingread.Pendingrequires race-free waker registration and must not hide consumed bytes. Never retain caller buffers or task-context pointers. Device-owned state belongs in the opening context (or the device for context-free implementations). - Direct
Base Operations - Device operations return
Polldirectly, includingread.Pendingrequires race-free waker registration and must not hide consumed bytes. Never retain caller buffers or task-context pointers. Device-owned state belongs in the opening context (or the device for context-free implementations).
Functions§
- open_
close_ operation - ready
- Complete an intrinsically synchronous backend operation with the polling contract. The closure runs exactly once; busy errors remain errors.