Mojo struct
ThreadRole
struct ThreadRole
Implemented traitsβ
AnyType,
Copyable,
Enum,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
comptime membersβ
CONSUMERβ
comptime CONSUMER = ThreadRole(1)
PRODUCERβ
comptime PRODUCER = ThreadRole(0)
PRODUCER_CONSUMERβ
comptime PRODUCER_CONSUMER = ThreadRole(2)
Methodsβ
valueβ
write_toβ
write_to[W: Writer](self, mut writer: W)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!