-
I have a few questions about the types of data that can be sent within the message part of a signal:
I am trying to understand if I am correct to assume the following governing principle: "If it can be serialized/deserialized by Serde, it can be sent as (or within) the message part of a Rinf signal." PS: Sorry if the it is an obvious answer |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Thank you for your participation :) |
Beta Was this translation helpful? Give feedback.
-
I've created new issues related to this topic: |
Beta Was this translation helpful? Give feedback.
-
Now this info is available in the docs |
Beta Was this translation helpful? Give feedback.
-
It looks like Bincode 2.x introduces a lot more serializable / de-serializable types: bincode-org/bincode#411, but so far Some of these new types would be very useful for my project, is there a fundamental incompatability with Bincode 2.x or is the plan to update in the future? |
Beta Was this translation helpful? Give feedback.
-
There are currently two reasons Bincode 2 is not being used:
If we can resolve these issues we might be able to discuss Bincode 2, but they're not easy problems to resolve. I'll say Bincode 2 will not be used by Rinf in the near future. Thank you for your participation :) |
Beta Was this translation helpful? Give feedback.
i8
,i16
,i32
,i64
,i128
u8
,u16
,u32
,u64
,u128
f32
,f64
char
,String
,&str
bool
[T; N]
,Vec<T>
,HashSet<T>
,BTreeSet<T>
HashMap<K, V>
,BTreeMap<K, V>
Option<T>
,Box<T>
()
..(T1, T2, T3, T4)
#[serde(with = "...")])
. It would be nice to have such a feature, but becauserinf gen
analyzes Rust code statically (by reading type annotation…