Trait sop::Ready [−][src]
pub trait Ready { fn write_to(
self: Box<Self>,
sink: &mut (dyn Write + Send + Sync)
) -> Result<()>; fn to_vec(self: Box<Self>) -> Result<Vec<u8>> { ... } }
Expand description
An operation ready to be executed.
To execute the operation, either supply an std::io::Write
r
using Ready::write_to
to write the resulting data to, or use
Ready::to_vec
to write to a Vec<u8>
.