use-thread-name 0.1.0

Primitive thread name and count vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    12 out of 12 items documented1 out of 10 items with examples
  • Size
  • Source code size: 6.93 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 577.31 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s 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-name

Primitive thread name and thread count vocabulary.

use-thread-name models thread names and non-zero thread counts as plain values. It does not name actual running threads, create threads, manage threads, or replace std::thread.

use use_thread_name::{ThreadCount, ThreadName};

let name = ThreadName::new("worker").unwrap();
let count = ThreadCount::new(4).unwrap();

assert_eq!(name.as_str(), "worker");
assert_eq!(count.get(), 4);