mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
20 lines
395 B
Zig
20 lines
395 B
Zig
pub const AuthenticationState = union(enum) {
|
|
pending: void,
|
|
none: void,
|
|
ok: void,
|
|
SASL: SASL,
|
|
md5: void,
|
|
|
|
pub fn zero(this: *AuthenticationState) void {
|
|
switch (this.*) {
|
|
.SASL => |*sasl| {
|
|
sasl.deinit();
|
|
},
|
|
else => {},
|
|
}
|
|
this.* = .{ .none = {} };
|
|
}
|
|
};
|
|
|
|
const SASL = @import("./SASL.zig");
|