pub trait WriteXdr {
// Required method
fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write;
// Provided methods
fn to_xdr(&self, limits: Limits) -> Result<Vec<u8>, Error> { ... }
fn to_xdr_base64(&self, limits: Limits) -> Result<String, Error> { ... }
}
Required Methods§
Provided Methods§
fn to_xdr(&self, limits: Limits) -> Result<Vec<u8>, Error>
fn to_xdr_base64(&self, limits: Limits) -> Result<String, Error>
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.