A file system event.
SDKs
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
Framework
- Dispatch
Declaration
struct FileSystemEvent
A file system event.
SDKs
Framework
struct FileSystemEvent
init()
Creates an empty option set.
init<S>(S)
Creates a new set from a finite sequence of items.
init(array Literal: Dispatch Source .File System Event...)
Creates a set containing the elements of the given array literal.
var is Empty: Bool
A Boolean value that indicates whether the set has no elements.
func contains(Dispatch Source .File System Event) -> Bool
Returns a Boolean value that indicates whether a given element is a member of the option set.
func form Intersection(Dispatch Source .File System Event)
Removes all elements of this option set that are not also present in the given set.
func form Symmetric Difference(Dispatch Source .File System Event)
Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.
func form Union(Dispatch Source .File System Event)
Inserts the elements of another set into this option set.
func insert(Dispatch Source .File System Event) -> (inserted: Bool, member After Insert: Dispatch Source .File System Event)
Adds the given element to the option set if it is not already a member.
func intersection(Dispatch Source .File System Event) -> Dispatch Source .File System Event
Returns a new option set with only the elements contained in both this set and the given set.
func is Disjoint(with: Dispatch Source .File System Event) -> Bool
Returns a Boolean value that indicates whether the set has no members in common with the given set.
func is Strict Subset(of: Dispatch Source .File System Event) -> Bool
Returns a Boolean value that indicates whether this set is a strict subset of the given set.
func is Strict Superset(of: Dispatch Source .File System Event) -> Bool
Returns a Boolean value that indicates whether this set is a strict superset of the given set.
func is Subset(of: Dispatch Source .File System Event) -> Bool
Returns a Boolean value that indicates whether the set is a subset of another set.
func is Superset(of: Dispatch Source .File System Event) -> Bool
Returns a Boolean value that indicates whether the set is a superset of the given set.
func remove(Dispatch Source .File System Event) -> Dispatch Source .File System Event?
Removes the given element and all elements subsumed by it.
func subtract(Dispatch Source .File System Event)
Removes the elements of the given set from this set.
func subtracting(Dispatch Source .File System Event) -> Dispatch Source .File System Event
Returns a new set containing the elements of this set that do not occur in the given set.
func symmetric Difference(Dispatch Source .File System Event) -> Dispatch Source .File System Event
Returns a new option set with the elements contained in this set or in the given set, but not in both.
func union(Dispatch Source .File System Event) -> Dispatch Source .File System Event
Returns a new option set of the elements contained in this set, in the given set, or in both.
func update(with: Dispatch Source .File System Event) -> Dispatch Source .File System Event?
Inserts the given element into the set.
static func != (Dispatch Source .File System Event, Dispatch Source .File System Event) -> Bool
Returns a Boolean value indicating whether two values are not equal.
class Dispatch Source
Dispatch
provides an interface for monitoring low-level system objects such as Mach ports, Unix descriptors, Unix signals, and VFS nodes for activity and submitting event handlers to dispatch queues for asynchronous processing when such activity occurs.
protocol Dispatch Source Protocol
Defines a common set of properties and methods that are shared with all dispatch source types.
protocol Dispatch Source File System Object
A dispatch source that monitors a file descriptor for events defined by Dispatch
. The handle is a file descriptor (Int32
).
protocol Dispatch Source Mach Send
A dispatch source that monitors a Mach port for dead name notifications, indicating that a send right no longer has any corresponding receive right. The handle is a Mach port with a send or send-once right (mach_port_t).
struct Dispatch Source .Mach Send Event
A Mach port send event.
protocol Dispatch Source Mach Receive
A dispatch source that monitors a Mach port for pending messages. The handle is a Mach port with a receive right (mach_port_t).
protocol Dispatch Source Memory Pressure
A dispatch source that monitors the system for changes in memory pressure condition.
struct Dispatch Source .Memory Pressure Event
A memory pressure event.
protocol Dispatch Source Process
A dispatch source that monitors an external process for events defined by Dispatch
. The handle is a process identifier (pid
).
struct Dispatch Source .Process Event
A process event.
protocol Dispatch Source Timer
A dispatch source that submits the event handler block based on a timer.
protocol Dispatch Source User Data Add
A dispatch source that coalesces data obtained via calls to calls to the add(data:)
method.
protocol Dispatch Source User Data Or
A dispatch source that coalesces data obtained via calls to the or(data:)
method.
Mach send event flags.
Process event flags.
File-system object event flags.
Memory pressure event flags
protocol Dispatch Source Signal
A dispatch source that monitors the current process for Unix signals.