pub trait ConditionallySend: Sized {
// Required methods
fn can_send(&self) -> bool;
fn wrap_send(self) -> Result<Sendable<Self>, Self>;
}
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<H: NativeRefCountedBase> ConditionallySend for RCHandle<H>
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.