A device.
struct Device(/* */, /* */)
| Name | Description |
|---|---|
| from_id | Returns a device based on its id and type. |
| from_major_minor | Returns a device based on its major and minor numbers and type. |
| Receiver | Name | Description |
|---|---|---|
self | id | Returns the device id of a device. |
self | major | Returns the major of a device. |
self | minor | Returns the minor of a device. |
self | to_path | Returns the path of a device in "/dev". |
self | ty | Returns the type of a device. |
| Name | Description |
|---|---|
| Clone | Objects that can be duplicated. |
| Copy | Objects that can safely be copied via |
| Debug | Objects that can be formatted in a "debug" form. |
| Eq | Objects that implement the binary |
| MaybeClone | Objects that can be duplicated. |