zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

fallible serialization

Open milyin opened this issue 1 year ago • 2 comments

  • z_try_serialize function added
  • trait TrySerialize added. The trait Serialize remains for infallible serialization
    • For basic types and containers which allows infallible serialization this trait is implemeted as TrySerialize<Error = Infallible>
    • The Serialize trait is implemeted automatically for all types which implements TrySerialize<Error = Infallible>
    • It's possible to implement Serialize explicitly for types which already implements TrySerialize<Error = ZSerializeError> or any other error. This is necessary for e.g. HashMap
  • fallible serialization of CString added: in demonstration purpose and may be for future use in zenoh-c

milyin avatar Oct 17 '24 14:10 milyin

PR missing one of the required labels: {'internal', 'documentation', 'new feature', 'bug', 'enhancement', 'breaking-change', 'dependencies'}

github-actions[bot] avatar Oct 17 '24 14:10 github-actions[bot]

PR missing one of the required labels: {'bug', 'dependencies', 'new feature', 'documentation', 'breaking-change', 'enhancement', 'internal'}

github-actions[bot] avatar Oct 17 '24 14:10 github-actions[bot]

@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.

Mallets avatar Nov 29 '24 09:11 Mallets