Struct sysfs_class::Block[][src]

pub struct Block { /* fields omitted */ }

A block device in /sys/class/block

Methods

impl Block
[src]

Trait Implementations

impl Clone for Block
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl SysClass for Block
[src]

Return the class of the sys object, the name of a folder in /sys/class

Create a sys object from an absolute path without checking path for validity

Return the path of the sys object

Return the path to the sys objects, the full path of a folder in /sys/class

Create a sys object from a path, checking it for validity

Retrieve all of the object instances of a sys class

Create a sys object by id, checking it for validity

Return the id of the sys object

Read a file underneath the sys object

Parse a number from a file underneath the sys object

Read a file underneath the sys object and trim whitespace

Write a file underneath the sys object

Auto Trait Implementations

impl Send for Block

impl Sync for Block