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§
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§
impl FromRsString for MdDigest
impl FromRsString for RdDigest
Available on crate feature
ns_consensus
only.