Trait binary_utils::SyncDataWriter
source · pub trait SyncDataWriter {
// Required method
fn write(&self, writer: &mut impl Write) -> Result<()>;
}Expand description
A trait for types that have to be written to a synchronous stream
§Notes
This trait is intended to be implemented for types that represent structured data and provide
a method to synchronously write that data into an output source. Implementations should handle
error conditions appropriately and return a Result indicating success or failure.
Required Methods§
Object Safety§
This trait is not object safe.