enum OpenProtocolAttributes [src]

Fields

by_handle_protocol = @bitCast(Bits{ .by_handle_protocol = true })
get_protocol = @bitCast(Bits{ .get_protocol = true })
test_protocol = @bitCast(Bits{ .test_protocol = true })
by_child_controller = @bitCast(Bits{ .by_child_controller = true })
by_driver = @bitCast(Bits{ .by_driver = true })
by_driver_exclusive = @bitCast(Bits{ .by_driver = true, .exclusive = true })
exclusive = @bitCast(Bits{ .exclusive = true })
_

Members

Source

pub const OpenProtocolAttributes = enum(u32) { pub const Bits = packed struct(u32) { by_handle_protocol: bool = false, get_protocol: bool = false, test_protocol: bool = false, by_child_controller: bool = false, by_driver: bool = false, exclusive: bool = false, reserved: u26 = 0, }; by_handle_protocol = @bitCast(Bits{ .by_handle_protocol = true }), get_protocol = @bitCast(Bits{ .get_protocol = true }), test_protocol = @bitCast(Bits{ .test_protocol = true }), by_child_controller = @bitCast(Bits{ .by_child_controller = true }), by_driver = @bitCast(Bits{ .by_driver = true }), by_driver_exclusive = @bitCast(Bits{ .by_driver = true, .exclusive = true }), exclusive = @bitCast(Bits{ .exclusive = true }), _, pub fn fromBits(bits: Bits) OpenProtocolAttributes { return @bitCast(bits); } pub fn toBits(self: OpenProtocolAttributes) Bits { return @bitCast(self); } }