pub trait NetdocEncodable {
// Required method
fn encode_unsigned(&self, out: &mut NetdocEncoder) -> Result<(), Bug>;
}Expand description
Documents (or sub-documents) that can be encoded in the netdoc metaformat
Required Methods§
Sourcefn encode_unsigned(&self, out: &mut NetdocEncoder) -> Result<(), Bug>
fn encode_unsigned(&self, out: &mut NetdocEncoder) -> Result<(), Bug>
Append the document onto out
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: NetdocEncodable> NetdocEncodable for Arc<T>
impl<T: NetdocEncodable> NetdocEncodable for Arc<T>
fn encode_unsigned(&self, out: &mut NetdocEncoder) -> Result<(), Bug>
Source§impl<T: NetdocEncodable> NetdocEncodable for Intern<T>
impl<T: NetdocEncodable> NetdocEncodable for Intern<T>
fn encode_unsigned(&self, out: &mut NetdocEncoder) -> Result<(), Bug>
Implementors§
impl NetdocEncodable for AuthCert
impl NetdocEncodable for AuthCertSignatures
impl NetdocEncodable for ConsensusAuthorityEntry
impl NetdocEncodable for ConsensusAuthoritySection
impl NetdocEncodable for EncodedAuthCert
impl NetdocEncodable for Microdesc
impl NetdocEncodable for tor_netdoc::doc::netstatus::md::NetworkStatus
impl NetdocEncodable for tor_netdoc::doc::netstatus::plain::NetworkStatus
impl NetdocEncodable for tor_netdoc::doc::netstatus::vote::NetworkStatus
impl NetdocEncodable for tor_netdoc::doc::netstatus::md::RouterStatus
impl NetdocEncodable for tor_netdoc::doc::netstatus::plain::RouterStatus
impl NetdocEncodable for tor_netdoc::doc::netstatus::vote::RouterStatus
impl NetdocEncodable for VoteAuthorityEntry
impl NetdocEncodable for VoteAuthoritySection
Available on crate feature
incomplete only.