TimespanMetric
open class TimespanMetric:
TimespanMetricProtocol
Undocumented
-
Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly.
See moreDeclaration
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 cancel()
-
Undocumented
Declaration
Swift
open func setRawNanos(_ elapsed: Int64)
-
Undocumented
Declaration
Swift
open func start()
-
Undocumented
Declaration
Swift
open func stop()
-
Undocumented
Declaration
Swift
open func testGetNumRecordedErrors(_ error: ErrorType) -> Int32
-
Undocumented
Declaration
Swift
open func testGetValue(_ pingName: String? = nil) -> Int64?