pub trait Encode {
// Required method
fn encode(&self, w: &mut Writer) -> Result<(), EncodeError>;
}Expand description
A type with a canonical encoding (fixed-size or self-limiting).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl Encode for AdmissionMode
impl Encode for AdmissionSummary
impl Encode for BotPackage
impl Encode for Challenge
impl Encode for CommunityDescriptor
impl Encode for CommunityId
impl Encode for DelegationRef
impl Encode for Discovery
impl Encode for ExportManifest
impl Encode for HostDelegation
impl Encode for HostId
impl Encode for HostSessionProof
impl Encode for KeyPackage
impl Encode for MemberKeyRegistration
impl Encode for MemberReauth
impl Encode for Nonce
impl Encode for PublicKey
PublicKey as a field (§3.4): suite u8 ‖ components, no length prefix. An unknown suite
byte is rejected before the components are read.