0001 // 0002 // DispatchIOConstants.swift 0003 // DispatchKit <https://github.com/anpol/DispatchKit> 0004 // 0005 // Copyright (c) 2014 Andrei Polushin. All rights reserved. 0006 // 0007 0008 import Foundation 0009 0010 public enum DKDispatchIOType{ 0011 0012 case Stream
DispatchIOConstants.swift:54 public typealias DispatchIOType = DKDispatchIOType, 0013 Random
DispatchIOConstants.swift:17 case .Stream:0014 0015 public var rawValue
DispatchIOConstants.swift:19 case .Random:: dispatch_io_type_t { 0016 switch self { 0017 case .Stream: 0018 return DISPATCH_IO_STREAM 0019 case .Random: 0020 return DISPATCH_IO_RANDOM 0021 } 0022 } 0023 0024 } 0025 0026 public struct DKDispatchIOCloseFlags
DispatchIO.swift:34 guard let rawValue = dispatch_io_create(type.rawValue, fd, queue?.rawValue, cleanup) else {DispatchIO.swift:45 guard let rawValue = dispatch_io_create_with_path(type.rawValue, path, oflag, mode, queue?.rawValue, cleanup) else {DispatchIO.swift:56 guard let rawValue = dispatch_io_create_with_io(type.rawValue, io.rawValue, queue?.rawValue, cleanup) else {: OptionSetType { 0027 0028 public typealias RawValue
DispatchIOConstants.swift:34 public static let Unspecified = DKDispatchIOCloseFlags(rawValue: 0)DispatchIOConstants.swift:35 public static let Stop = DKDispatchIOCloseFlags(rawValue: DISPATCH_IO_STOP)DispatchIOConstants.swift:55 public typealias DispatchIOCloseFlags = DKDispatchIOCloseFlags= dispatch_io_close_flags_t 0029 public let rawValue
DispatchIOConstants.swift:29 public let rawValue: RawValue: RawValue 0030 public init
DispatchIO.swift:103 dispatch_io_close(rawValue, flags.rawValue)DispatchIOConstants.swift:31 self.rawValue = rawValue(rawValue: dispatch_io_close_flags_t) { 0031 self.rawValue = rawValue 0032 } 0033 0034 public static let Unspecified
DispatchIOConstants.swift:34 public static let Unspecified = DKDispatchIOCloseFlags(rawValue: 0)DispatchIOConstants.swift:35 public static let Stop = DKDispatchIOCloseFlags(rawValue: DISPATCH_IO_STOP)= DKDispatchIOCloseFlags(rawValue: 0) 0035 public static let Stop = DKDispatchIOCloseFlags(rawValue: DISPATCH_IO_STOP) 0036 0037 } 0038 0039 0040 0041 public struct DKDispatchIOIntervalFlags
DispatchIO.swift:102 public func close(flags: DispatchIOCloseFlags = .Unspecified) {: OptionSetType { 0042 0043 public typealias RawValue
DispatchIOConstants.swift:49 public static let Unspecified = DKDispatchIOIntervalFlags(rawValue: 0)DispatchIOConstants.swift:50 public static let Strict = DKDispatchIOIntervalFlags(rawValue: DISPATCH_IO_STRICT_INTERVAL)DispatchIOConstants.swift:56 public typealias DispatchIOIntervalFlags = DKDispatchIOIntervalFlags= dispatch_io_interval_flags_t 0044 public let rawValue
DispatchIOConstants.swift:44 public let rawValue: RawValueDispatchIOConstants.swift:45 public init(rawValue: RawValue) {: RawValue 0045 public init
DispatchIO.swift:119 dispatch_io_set_interval(rawValue, UInt64(interval), flags.rawValue)DispatchIOConstants.swift:46 self.rawValue = rawValue(rawValue: RawValue) { 0046 self.rawValue = rawValue 0047 } 0048 0049 public static let Unspecified
DispatchIOConstants.swift:49 public static let Unspecified = DKDispatchIOIntervalFlags(rawValue: 0)DispatchIOConstants.swift:50 public static let Strict = DKDispatchIOIntervalFlags(rawValue: DISPATCH_IO_STRICT_INTERVAL)= DKDispatchIOIntervalFlags(rawValue: 0) 0050 public static let Strict = DKDispatchIOIntervalFlags(rawValue: DISPATCH_IO_STRICT_INTERVAL) 0051 0052 } 0053 0054 public typealias DispatchIOType
DispatchIO.swift:118 public func setInterval(interval: Int64, flags: DispatchIOIntervalFlags = .Unspecified) {= DKDispatchIOType 0055 public typealias DispatchIOCloseFlags
DispatchIO.swift:30 public init!(_ type: DispatchIOType,DispatchIO.swift:41 public init!(_ type: DispatchIOType,DispatchIO.swift:52 public init!(_ type: DispatchIOType,= DKDispatchIOCloseFlags 0056 public typealias DispatchIOIntervalFlags
DispatchIO.swift:102 public func close(flags: DispatchIOCloseFlags = .Unspecified) {= DKDispatchIOIntervalFlags 0057
DispatchIO.swift:118 public func setInterval(interval: Int64, flags: DispatchIOIntervalFlags = .Unspecified) {