Other Protocols

The following protocols are available globally.

  • Protocol for remote commands executed via command pattern. Registered in CommandRegistry with O(1) lookup by name.

    See more

    Declaration

    Swift

    public protocol Command
  • Protocol for types that carry a command name used for dispatch routing.

    Used as the Command generic constraint in CommandMappingsBuilder to allow type-safe command mapping without requiring RawRepresentable.

    See more

    Declaration

    Swift

    public protocol CommandName
  • A protocol that adds a readable localizedDescription to error enums.

    See more

    Declaration

    Swift

    public protocol ErrorEnum : Error
  • An error that can be created with an underlying error of a specific type.

    See more

    Declaration

    Swift

    public protocol ErrorWrapping<SomeError> : Error
  • A utility providing some basic insight into the number of queued events for each processor.

    See more

    Declaration

    Swift

    public protocol QueueMetrics
  • A protocol for objects that can repeat an action at regular intervals.

    See more

    Declaration

    Swift

    public protocol Repeater
  • A protocol representing an observer that can receive elements and a completion signal.

    Contract:

    • onNext(_:) may be called zero or more times.
    • onComplete() is called at most once, always after all onNext calls.
    • After onComplete(), no further onNext calls will be made.
    • onComplete() is NOT called upon external disposal — only on natural upstream termination.
    See more

    Declaration

    Swift

    public protocol Observer<Element>
  • An object from which you can extract an optional error.

    See more

    Declaration

    Swift

    public protocol ErrorExtractor<ErrorType>
  • Protocol for managing session state and updates.

    See more

    Declaration

    Swift

    public protocol SessionRegistry
  • An object that receives a Dispatch, enriches it and sends it to be dispatched.

    See more

    Declaration

    Swift

    public protocol Tracker : AnyObject