zenoh
zenoh copied to clipboard
fallible serialization
z_try_serializefunction added- trait
TrySerializeadded. The traitSerializeremains for infallible serialization- For basic types and containers which allows infallible serialization this trait is implemeted as
TrySerialize<Error = Infallible> - The
Serializetrait is implemeted automatically for all types which implementsTrySerialize<Error = Infallible> - It's possible to implement
Serializeexplicitly for types which already implementsTrySerialize<Error = ZSerializeError>or any other error. This is necessary for e.g.HashMap
- For basic types and containers which allows infallible serialization this trait is implemeted as
- fallible serialization of
CStringadded: in demonstration purpose and may be for future use in zenoh-c
PR missing one of the required labels: {'internal', 'documentation', 'new feature', 'bug', 'enhancement', 'breaking-change', 'dependencies'}
PR missing one of the required labels: {'bug', 'dependencies', 'new feature', 'documentation', 'breaking-change', 'enhancement', 'internal'}
@milyin At the end we decided to not include this PR in 1.0.0. Therefore I believe it can be safely closed as no longer relevant.