State

public enum State

Represents the state of the circuit.

  • The circuit is open, i.e. broken.

    Declaration

    Swift

    case open
  • The circuit is half-open, i.e. experiencing errors.

    Declaration

    Swift

    case halfopen
  • The circuit is closed, i.e functioning normally.

    Declaration

    Swift

    case closed