Skip to main content

WireValue

Trait WireValue 

Source
pub trait WireValue:
    Sized
    + Send
    + 'static {
    const SCHEMA_ID: u64;

    // Required methods
    fn encode(self) -> Result<Segments, ActionError>;
    fn decode(segments: Segments) -> Result<Self, ActionError>;
}

Required Associated Constants§

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 WireValue for ()

Source§

impl WireValue for String

Source§

impl WireValue for Vec<u8>

Source§

impl WireValue for u64

Implementors§