Struct lrs::fs::FileSystemInfo

Filesystem information.

Syntax

struct FileSystemInfo(/* */)

Static methods

NameDescription
from_path

Returns information about the filesystem located at a path.

Methods

ReceiverNameDescription
&selfavailable_blocks

Returns the number of free blocks usable by unprivileged users.

&selfblock_size

Returns the block size of the filesystem.

&selfblocks

Returns the number of blocks in the filesystem.

&selffiles

Returns the number of files in the filesystem.

&selffragment_size

Returns the fragment size of the filesystem.

&selffree_blocks

Returns the number of free blocks in the filesystem.

&selffree_files

Returns the number of free inodes in the filesystem.

&selfmax_name_len

Returns the maximum length of a filename in the filesystem.

&selfmount_flags

Returns the flags the filesystem is mounted with.

&selfty

Returns the type of the filesystem.

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.

Pod

Objects that are safe to use if they contain a random bit pattern.