freya_devtools

Trait NodeIdSerializer

Source
pub trait NodeIdSerializer {
    // Required methods
    fn serialize(&self) -> String;
    fn deserialize(node_id: &str) -> Self;
}

Required Methods§

Source

fn serialize(&self) -> String

Source

fn deserialize(node_id: &str) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NodeIdSerializer for NodeId

Source§

fn serialize(&self) -> String

Source§

fn deserialize(node_id: &str) -> Self

Implementors§