TimingDistributionMetric

open class TimingDistributionMetric:
    TimingDistributionMetricProtocol

Undocumented

  • Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly.

    See more

    Declaration

    Swift

    public struct NoPointer
  • Undocumented

    Declaration

    Swift

    required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer)
  • This constructor can be used to instantiate a fake object.

    Warning

    Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn’t a backing [Pointer] the FFI lower functions will crash.

    Declaration

    Swift

    public init(noPointer: NoPointer)

    Parameters

    noPointer

    Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject].

  • Undocumented

    Declaration

    Swift

    public func uniffiClonePointer() -> UnsafeMutableRawPointer
  • Undocumented

    Declaration

    Swift

    public convenience init(_ meta: CommonMetricData, _ timeUnit: TimeUnit)
  • Undocumented

    Declaration

    Swift

    open func accumulateSamples(_ samples: [Int64])
  • Undocumented

    Declaration

    Swift

    open func accumulateSingleSample(_ sample: Int64)
  • Undocumented

    Declaration

    Swift

    open func cancel(_ timerId: TimerId)
  • Undocumented

    Declaration

    Swift

    open func start() -> TimerId
  • Undocumented

    Declaration

    Swift

    open func stopAndAccumulate(_ timerId: TimerId)
  • Undocumented

    Declaration

    Swift

    open func testGetNumRecordedErrors(_ error: ErrorType) -> Int32
  • Undocumented

    Declaration

    Swift

    open func testGetValue(_ pingName: String? = nil) -> DistributionData?