pub trait Wire: Sized {
// Required methods
fn encode(&self, encoder: &mut Encoder);
fn decode(decoder: &mut Decoder<'_>) -> Result<Self>;
}Expand description
A type with a msgpack encoding shared with the Python side.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<A: Wire, B: Wire> Wire for (A, B)
A two-element tuple, an array of length two on the wire.
impl<A: Wire, B: Wire> Wire for (A, B)
A two-element tuple, an array of length two on the wire.
Source§impl<T: Wire> Wire for Vec<T>
Lists, tuples of any length and sets are all arrays on the wire.
impl<T: Wire> Wire for Vec<T>
Lists, tuples of any length and sets are all arrays on the wire.