Event

public enum Event
extension Persister.Update.Event: Hashable where Value: Hashable
extension Persister.Update.Event: Equatable where Value: Equatable

An event that triggers an update.

  • The was persisted.

    Declaration

    Swift

    case persisted(Value)
  • The value was removed.

    Declaration

    Swift

    case removed
  • The value after the update. nil indicates the value was removed.

    Declaration

    Swift

    public var value: Value? { get }