LastNetworkUploadSpeedTest

struct LastNetworkUploadSpeedTest

The results of the most recent network-upload speed test.

  • The Unix Epoch timestamp of when the most recent network-upload speed test was run.

    Declaration

    Swift

    let unixTimestampSeconds: Int64
  • The upload speed in megabits per second of the most recent network speed test.

    Declaration

    Swift

    let uploadSpeedMbps: Float32
  • Whether the most recent network-upload speed test succeeded or failed.

    Declaration

  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws
  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?