diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.zig b/src/main.zig index c8a9d8e..818b3b7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -12,19 +12,20 @@ pub const ProtocolError = error{ InvalidFormatCode, }; +pub const FormatCode = enum(u16) { + Text = 0, + Binary = 1, +}; + pub const ClientError = error{ UnsupportedAuthType, + NoPasswordSupplied, }; pub const ServerError = error{ ErrorResponse, }; -pub const FormatCode = enum(u16) { - Text = 0, - Binary = 1, -}; - // Fallible version of enumFromInt pub fn enum_from_int(comptime e: type, i: anytype) ?e { const enum_ti = @typeInfo(e); |