Other Protocols
The following protocols are available globally.
-
Protocol for remote commands executed via command pattern. Registered in
See moreCommandRegistrywith O(1) lookup by name.Declaration
Swift
public protocol Command -
Protocol for types that carry a command name used for dispatch routing.
Used as the
See moreCommandgeneric constraint inCommandMappingsBuilderto allow type-safe command mapping without requiringRawRepresentable.Declaration
Swift
public protocol CommandName -
A protocol that adds a readable localizedDescription to error enums.
See moreDeclaration
Swift
public protocol ErrorEnum : Error -
An error that can be created with an underlying error of a specific type.
See moreDeclaration
Swift
public protocol ErrorWrapping<SomeError> : Error -
A utility providing some basic insight into the number of queued events for each processor.
See moreDeclaration
Swift
public protocol QueueMetrics -
A protocol for objects that can repeat an action at regular intervals.
See moreDeclaration
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 allonNextcalls.- After
onComplete(), no furtheronNextcalls will be made. onComplete()is NOT called upon external disposal — only on natural upstream termination.
Declaration
Swift
public protocol Observer<Element> -
An object from which you can extract an optional error.
See moreDeclaration
Swift
public protocol ErrorExtractor<ErrorType> -
Protocol for managing session state and updates.
See moreDeclaration
Swift
public protocol SessionRegistry
View on GitHub
Other Protocols Reference