enum StateEnumThe state of the electric vehicle.
- 
                  
                  The electric vehicle is not plugged in. DeclarationSwift case notPluggedIn
- 
                  
                  The electric vehicle is plugged in and is not demanding current. DeclarationSwift case pluggedInNoDemand
- 
                  
                  The electric vehicle is plugged in and is demanding current, but the EVSE is not allowing current to flow. DeclarationSwift case pluggedInDemand
- 
                  
                  The electric vehicle is plugged in, charging is in progress, and current is flowing. DeclarationSwift case pluggedInCharging
- 
                  
                  The electric vehicle is plugged in, discharging is in progress, and current is flowing. DeclarationSwift case pluggedInDischarging
- 
                  
                  The electric vehicle is transitioning from any plugged-in state to NotPluggedIn.DeclarationSwift case sessionEnding
- 
                  
                  The EVSE has detected a fault. See the faultStateattribute for more information.DeclarationSwift case fault
- 
                  
                  Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"DeclarationSwift init?(rawValue: UInt64)ParametersrawValueThe raw value to use for the new instance.