Trait FromRsString

Source
pub trait FromRsString: Sized {
    // Required method
    fn decode(s: &str) -> Result<Self>;
}
Expand description

Helper to decode a document digest in the format in which it appears in a given kind of routerstatus.

Required Methods§

Source

fn decode(s: &str) -> Result<Self>

Try to decode the given object.

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.

Implementors§

Source§

impl FromRsString for MdDigest

Source§

impl FromRsString for RdDigest

Available on crate feature ns_consensus only.