pub struct ProducerBuilder { /* private fields */ }
Expand description
A non-consuming Producer builder.
Implementations§
Source§impl ProducerBuilder
impl ProducerBuilder
pub fn new(conn: Connection) -> Self
Sourcepub fn with_peeker(
&mut self,
peeker: Box<dyn MessagePeek + Send + Sync>,
) -> &mut Self
pub fn with_peeker( &mut self, peeker: Box<dyn MessagePeek + Send + Sync>, ) -> &mut Self
Use the provided MessagePeek trait object.
pub async fn build(&self) -> Result<Producer, Error>
Trait Implementations§
Source§impl Clone for ProducerBuilder
impl Clone for ProducerBuilder
Source§fn clone(&self) -> ProducerBuilder
fn clone(&self) -> ProducerBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProducerBuilder
impl !RefUnwindSafe for ProducerBuilder
impl Send for ProducerBuilder
impl Sync for ProducerBuilder
impl Unpin for ProducerBuilder
impl !UnwindSafe for ProducerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more