pub trait WritableBodyTransaction {
// Required method
fn write_into(
&self,
buffer: &mut OwnedAlignedBuffer,
) -> Result<(), OwnedTransactionError>;
}ⓘ This trait cannot be implemented outside
ab_core_primitives.Expand description
Transaction that can be written into the body.
Can’t be implemented outside of this module, because block body builders rely on it appending exactly one correctly encoded transaction to the buffer.
Required Methods§
Sourcefn write_into(
&self,
buffer: &mut OwnedAlignedBuffer,
) -> Result<(), OwnedTransactionError>
fn write_into( &self, buffer: &mut OwnedAlignedBuffer, ) -> Result<(), OwnedTransactionError>
Write this transaction into the body
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".