Several days earlier I worte the code,I imported the library of Alamofire.
I defined one enum,let it confirm to StringConvertible protocol.
But the error told me enum cannot StringConvertible protocol.Actually Struct,enum and class both can conform to protocols.I confirmed the issue,possibly it has relationship with Xcode.My version of Xcode is 7.2...Hope later modify the bug of Xcode.