Registry / utility / tetsy-send-wrapper

tetsy-send-wrapper

JSON →
library0.1.0rscratesunverified

A wrapper type that allows moving non-Send types between threads with runtime checks.

# Cargo.toml [dependencies] tetsy-send-wrapper = "0.1.0"
INSTALL
IMPORT
SIG · TETSY-SEND-WRAPPER
T
tetsy-send-wrapper
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SendWrapper
use tetsy_send_wrapper::SendWrapper;

Wraps a non-Send value for safe cross-thread movement.

use tetsy_send_wrapper::SendWrapper; let non_send = std::rc::Rc::new(42); let wrapped = SendWrapper::new(non_send); std::thread::spawn(move || { // Access only from original thread }).join().unwrap();
Debug
Known issues
gotchaPanics if accessed from wrong thread or dropped on wrong thread.
fix
Ensure all access and drop happen on the original thread.
affects: *
Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
tetsy-send-wrapper — cargo add tetsy-send-wrapper · libregistry