Struct lrs::file::Info

Information about a file.

Syntax

struct Info(/* */)

Methods

ReceiverNameDescription
&selfblocks

Returns the number of 512 byte blocks used by this file.

&selfdevice

Returns the device on which the file is stored.

&selffile_type

Returns the type of this file.

&selfgroup

Returns the group id of the owner.

&selfinode

Returns the inode of the file.

&selflast_access

Returns the last time this file was accessed.

&selflast_modification

Returns the last time this file was modified.

&selflast_status_change

Returns the last time the status of the inode was changed.

&selfmode

Returns the mode of the file.

&selfnr_hard_links

Returns the number of hard links to the file.

&selfpreferred_write_size

Returns the preferred size of writes to this file.

&selfsize

Returns he size of the file in bytes.

&selfspecial_file

If self is a device special file, then this functions returns the device it represents.

&selfuser

Returns the user id of the owner.

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.