Struct lrs::file::Device

A device.

Syntax

struct Device(/* */, /* */)

Static methods

NameDescription
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.

Methods

ReceiverNameDescription
selfid

Returns the device id of a device.

selfmajor

Returns the major of a device.

selfminor

Returns the minor of a device.

selfto_path

Returns the path of a device in "/dev".

selfty

Returns the type of a device.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.