pub trait IoDevice { }
Expand description
Represents a device type that can have ioctl
requests implemented for it.
Implementations of this type should typically be zero-sized types, because
they are used only as markers for annotating File
objects using
super::File::to_device
.
This is just a marker trait used to check type safety for
super::File::ioctl
; it has no behavior of its own and merely permits
the safe abstraction to block trying to use ioctl requests intended for
another device type which might therefore cause memory corruption if the
argument type is incorrect.