Trait IntoDynamicSend

pub trait IntoDynamicSend: Sealed {
    type Target: DynamicSend<Inner = Self>;

    // Required method
    fn into_dynamic_send(self) -> Self::Target;
}
Expand description

Convert a value into a type that is Send at compile-time while the value might not be.

This allows to turn any implementor into a type that is Send, but requires to also implement DynamicSend as well. The later trait will verify if a value can actually be sent between threads at runtime.

Required Associated Types§

type Target: DynamicSend<Inner = Self>

Required Methods§

fn into_dynamic_send(self) -> Self::Target

Implementations on Foreign Types§

§

impl IntoDynamicSend for bool

§

impl IntoDynamicSend for f32

§

impl IntoDynamicSend for f64

§

impl IntoDynamicSend for i8

§

impl IntoDynamicSend for i16

§

impl IntoDynamicSend for i32

§

impl IntoDynamicSend for i64

§

impl IntoDynamicSend for u8

§

impl IntoDynamicSend for u16

§

impl IntoDynamicSend for u32

§

impl IntoDynamicSend for u64

§

impl IntoDynamicSend for ()

§

impl<A1> IntoDynamicSend for (A1,)
where A1: IntoDynamicSend,

§

impl<A1, A2> IntoDynamicSend for (A1, A2)

§

impl<A1, A2, A3> IntoDynamicSend for (A1, A2, A3)

§

impl<A1, A2, A3, A4> IntoDynamicSend for (A1, A2, A3, A4)

§

impl<A1, A2, A3, A4, A5> IntoDynamicSend for (A1, A2, A3, A4, A5)

§

impl<A1, A2, A3, A4, A5, A6> IntoDynamicSend for (A1, A2, A3, A4, A5, A6)

§

impl<A1, A2, A3, A4, A5, A6, A7> IntoDynamicSend for (A1, A2, A3, A4, A5, A6, A7)

§

impl<A1, A2, A3, A4, A5, A6, A7, A8> IntoDynamicSend for (A1, A2, A3, A4, A5, A6, A7, A8)

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> IntoDynamicSend for (A1, A2, A3, A4, A5, A6, A7, A8, A9)

Implementors§

§

impl IntoDynamicSend for Rid

§

type Target = Rid

§

impl IntoDynamicSend for Vector2Axis

§

impl IntoDynamicSend for Vector3Axis

§

impl IntoDynamicSend for Aabb

§

type Target = Aabb

§

impl IntoDynamicSend for Array<Variant>

§

type Target = ThreadConfined<Array<Variant>>

§

impl IntoDynamicSend for Basis

§

impl IntoDynamicSend for Callable

§

type Target = ThreadConfined<Callable>

§

impl IntoDynamicSend for Color

§

impl IntoDynamicSend for Dictionary

§

type Target = ThreadConfined<Dictionary>

§

impl IntoDynamicSend for GString

§

type Target = ThreadConfined<GString>

§

impl IntoDynamicSend for NodePath

§

type Target = ThreadConfined<NodePath>

§

impl IntoDynamicSend for PackedByteArray

§

type Target = ThreadConfined<PackedByteArray>

§

impl IntoDynamicSend for PackedColorArray

§

type Target = ThreadConfined<PackedColorArray>

§

impl IntoDynamicSend for PackedFloat32Array

§

type Target = ThreadConfined<PackedFloat32Array>

§

impl IntoDynamicSend for PackedFloat64Array

§

type Target = ThreadConfined<PackedFloat64Array>

§

impl IntoDynamicSend for PackedInt32Array

§

type Target = ThreadConfined<PackedInt32Array>

§

impl IntoDynamicSend for PackedInt64Array

§

type Target = ThreadConfined<PackedInt64Array>

§

impl IntoDynamicSend for PackedStringArray

§

type Target = ThreadConfined<PackedStringArray>

§

impl IntoDynamicSend for PackedVector2Array

§

type Target = ThreadConfined<PackedVector2Array>

§

impl IntoDynamicSend for PackedVector3Array

§

type Target = ThreadConfined<PackedVector3Array>

§

impl IntoDynamicSend for PackedVector4Array

§

type Target = ThreadConfined<PackedVector4Array>

§

impl IntoDynamicSend for Plane

§

impl IntoDynamicSend for Projection

§

impl IntoDynamicSend for Quaternion

§

impl IntoDynamicSend for Rect2

§

impl IntoDynamicSend for Rect2i

§

impl IntoDynamicSend for Signal

§

type Target = ThreadConfined<Signal>

§

impl IntoDynamicSend for StringName

§

impl IntoDynamicSend for Transform2D

§

impl IntoDynamicSend for Transform3D

§

impl IntoDynamicSend for Variant

§

type Target = ThreadConfined<Variant>

§

impl IntoDynamicSend for Vector2

§

impl IntoDynamicSend for Vector2i

§

impl IntoDynamicSend for Vector3

§

impl IntoDynamicSend for Vector3i

§

impl IntoDynamicSend for Vector4

§

impl IntoDynamicSend for Vector4i

§

impl<T> IntoDynamicSend for Gd<T>
where T: GodotClass,

§

type Target = ThreadConfined<Gd<T>>