pub enum Codec {
Json,
JsonPretty,
}Expand description
Application-payload encoding for typed RPC. Per-call selectable
via CallOptionsTyped::codec; per-handler via
Mesh::serve_rpc_typed’s closure choice. Caller and server
must agree on the codec out of band.
Variants§
Json
serde_json. The default — human-readable, ubiquitous,
works across every binding language.
JsonPretty
serde_json::to_vec_pretty. Same wire format as Json,
just emitted with indentation. Useful for debugging /
human inspection of recorded RPC traffic.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin for Codec
impl UnwindSafe for Codec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more