pub struct SuperStreamProducer<T>(/* private fields */);Implementations§
Source§impl SuperStreamProducer<NoDedup>
impl SuperStreamProducer<NoDedup>
pub async fn send<Fut>( &mut self, message: Message, cb: impl Fn(Result<ConfirmationStatus, ProducerPublishError>) -> Fut + Send + Sync + 'static + Clone, ) -> Result<(), SuperStreamProducerPublishError>
pub async fn close(self) -> Result<(), ProducerCloseError>
Trait Implementations§
Source§impl<T: Clone> Clone for SuperStreamProducer<T>
impl<T: Clone> Clone for SuperStreamProducer<T>
Source§fn clone(&self) -> SuperStreamProducer<T>
fn clone(&self) -> SuperStreamProducer<T>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for SuperStreamProducer<T>
impl<T> !RefUnwindSafe for SuperStreamProducer<T>
impl<T> Send for SuperStreamProducer<T>where
T: Send,
impl<T> Sync for SuperStreamProducer<T>where
T: Sync,
impl<T> Unpin for SuperStreamProducer<T>where
T: Unpin,
impl<T> !UnwindSafe for SuperStreamProducer<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)