[−][src]Trait pyo3::pyclass::PyClassSend  
This trait is implemented for #[pyclass] and handles following two situations:
- In case 
TisSend, stubThreadCheckeris used and does nothing. This implementation is used by default. Compile fails ifT: !Send. - In case 
Tis!Send,ThreadCheckerpanics whenTis accessed by another thread. This implementation is used when#[pyclass(unsendable)]is given. Panicking makes it safe to exposeT: !Sendto the Python interpreter, where all objects can be accessed by multiple threads bythreadingmodule.