pub enum RpcDialect {
Pickle,
Msgpack,
}Expand description
The wire codec a client’s RPC payload speaks. RNS through 1.3.3 carried the
request and reply as multiprocessing.connection’s pickle
(connection.send/recv); RNS 1.3.4 and later frame msgpack
(send_bytes(mp.packb(..)) / mp.unpackb(recv_bytes())). Both share the
same length-prefixed framing and the same auth handshake — only the payload
codec differs, so the reply must answer in the dialect the request arrived
in or the client mis-decodes it.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RpcDialect
impl Clone for RpcDialect
Source§fn clone(&self) -> RpcDialect
fn clone(&self) -> RpcDialect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RpcDialect
Source§impl Debug for RpcDialect
impl Debug for RpcDialect
impl Eq for RpcDialect
Source§impl PartialEq for RpcDialect
impl PartialEq for RpcDialect
impl StructuralPartialEq for RpcDialect
Auto Trait Implementations§
impl Freeze for RpcDialect
impl RefUnwindSafe for RpcDialect
impl Send for RpcDialect
impl Sync for RpcDialect
impl Unpin for RpcDialect
impl UnsafeUnpin for RpcDialect
impl UnwindSafe for RpcDialect
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