pub trait PyInputSpec {
type Input<'m>: CuMsgPack
where Self: 'm;
type Owned: Clone + Serialize + DeserializeOwned;
// Required method
fn to_owned(input: &Self::Input<'_>) -> Self::Owned;
}Expand description
Describes how a Python-backed task receives its Copper inputs.
Python cannot safely borrow Copper messages directly, so every call converts the runtime input into an owned representation first.
Required Associated Types§
type Input<'m>: CuMsgPack where Self: 'm
type Owned: Clone + Serialize + DeserializeOwned
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".