StructureSystemPackage
AccessMode
The desired read and write access for a newly opened file.
@frozen struct AccessMode
The desired read and write access for a newly opened file.
@frozen struct AccessMode
init(from: Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is Int32
.
init(rawValue: CInt)
Creates a strongly-typed access mode from a raw C access mode.
static var readOnly: FileDescriptor.AccessMode
Opens the file for reading only.
static var readWrite: FileDescriptor.AccessMode
Opens the file for reading and writing.
static var writeOnly: FileDescriptor.AccessMode
Opens the file for writing only.
var debugDescription: String
A textual representation of the access mode, suitable for debugging
var description: String
A textual representation of the access mode.
var halfWidthCornerQuoted: String
var hashValue: Int
var rawValue: CInt
The raw C access mode.
func encode(to: Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is Int32
.
func hash(into: inout Hasher)