struct UnknownEventextension UnknownEvent : CustomDebugStringConvertible, Event, SendableRepresents an unknown Event
-
Identifier for this event.
The Event ID is appended onto the Trait ID of the trait this event belongs to.
Declaration
Swift
static let identifier: ScopedEventID -
Name of the given event type.
Declaration
Swift
static let name: StaticString -
Timestamp of when the given event occurred on the sender.
Declaration
Swift
var timestamp: TimeInterval -
Reported importance level of the given event.
Declaration
Swift
var importance: EventImportance -
Optional number of the event in the sequence history of this field.
Declaration
Swift
var number: UInt -
Initializer to decode the event.
Declaration
Swift
init(decoder: TraitDecoder, timestamp: TimeInterval, importance: EventImportance, number: UInt) throws -
Encodes the given event.
Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the
String(reflecting:)initializer. This initializer works with any type, and uses the customdebugDescriptionproperty for types that conform toCustomDebugStringConvertible:struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)"The conversion of
pto a string in the assignment tosuses thePointtype’sdebugDescriptionproperty.Declaration
Swift
var debugDescription: String { get }