Trait Serialize

Source
pub trait Serialize {
    // Required method
    fn serialize<B: BufMut>(self, buf: &mut B) -> Result<(), Error>;
}
Expand description

Serialize to IETF wireformat that is similar to XDR

Required Methods§

Source

fn serialize<B: BufMut>(self, buf: &mut B) -> Result<(), Error>

Serialize the provided struct into the buf.

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§