use-thread-id 0.1.0

Primitive thread identity label vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 7 items with examples
  • Size
  • Source code size: 5.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 416.97 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-os
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-thread-id

Primitive thread identity vocabulary.

use-thread-id models stable thread labels or numeric thread-like identifiers as plain data. It does not create, inspect, name, manage, or pool threads, and it does not depend on unstable thread ID internals.

use use_thread_id::ThreadIdLabel;

let label = ThreadIdLabel::label("worker-1").unwrap();
let number = ThreadIdLabel::number(1);

assert_eq!(label.to_string(), "worker-1");
assert_eq!(number.to_string(), "1");