Struct lrs::file::AccessMode

A way to access a file.

This type is used to check whether a file can be accessed with a certain set of permissions.

Syntax

struct AccessMode(u16)

Fields

PositionDescription
1

Static methods

NameDescription
empty

Create an access mode with all bits unset.

Methods

ReceiverNameDescription
&selfis_executable

Checks if the executable bit is set.

&selfis_readable

Checks if the readable bit is set.

&selfis_writable

Checks if the writable bit is set.

&mut selfset_executable

Sets or unsets the executable flag.

&mut selfset_readable

Sets or unsets the readable flag.

&mut selfset_writable

Sets or unsets the writable flag.

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.

Display

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

Eq

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

MaybeClone

Objects that can be duplicated.

Parsable

Types that are parsable.

Pod

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