Other Structures

The following structures are available globally.

  • EditionPageNumber represents a page number to an edition.

    Edition page numbers are 0-based. Using EditionPageNumber helps you keep track of the value domain you are operating in, in case you also have 1-based, human oriented page numbers in your system. You can convert from 1-based integers with init(oneBased:).

    See more

    Declaration

    Swift

    public struct EditionPageNumber : Hashable, Sendable
  • StartableResultProvider is an operation that can be started with a completion closure and can be cancelled.

    See more

    Declaration

    Swift

    public struct StartableResultProvider<Value, Failure> where Failure : Error
    extension StartableResultProvider: StartableCancelable
  • A source for a DistributedTracingID value. Used for debugging across the Richie system.

    DistributedTracingIDSource wraps a closure that produces an identifier. The static live value provides a source that produces a new random identifier each time it is called.

    See more

    Declaration

    Swift

    public struct DistributedTracingIDSource : Sendable