pub trait PublishSample<'a>: Send + Sync {
// Required methods
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ;
fn publish(
self: Box<Self>,
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>;
}Expand description
A prepared message constructed by Publisher::prepare.
Required Methods§
Sourcefn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Gets a reference to the prepared message.
Makes it possible to construct the message in-place.