pub struct NoopProducer;Expand description
A Producer that discards everything.
Trait Implementations§
Source§impl Clone for NoopProducer
impl Clone for NoopProducer
Source§fn clone(&self) -> NoopProducer
fn clone(&self) -> NoopProducer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoopProducer
Source§impl Debug for NoopProducer
impl Debug for NoopProducer
Source§impl Default for NoopProducer
impl Default for NoopProducer
Source§fn default() -> NoopProducer
fn default() -> NoopProducer
Returns the “default value” for a type. Read more
Source§impl Producer for NoopProducer
impl Producer for NoopProducer
Source§type Error = Infallible
type Error = Infallible
What can go wrong when sending.
Source§fn send(&self, _key: &[u8], _payload: Vec<u8>) -> Result<(), Self::Error>
fn send(&self, _key: &[u8], _payload: Vec<u8>) -> Result<(), Self::Error>
Enqueues one record. Read more
Source§fn join_blocking(&self, _timeout: Duration) -> Result<(), Self::Error>
fn join_blocking(&self, _timeout: Duration) -> Result<(), Self::Error>
Blocks until enqueued records have been delivered, or
timeout elapses. Read moreSource§fn join(
&self,
timeout: Duration,
) -> impl Future<Output = Result<(), Self::Error>> + Send + use<Self>
fn join( &self, timeout: Duration, ) -> impl Future<Output = Result<(), Self::Error>> + Send + use<Self>
Waits for enqueued records to be delivered, or until
timeout elapses. Read moreErases this producer’s transport and error type, so one producer can serve
several trackers. Read more
Auto Trait Implementations§
impl Freeze for NoopProducer
impl RefUnwindSafe for NoopProducer
impl Send for NoopProducer
impl Sync for NoopProducer
impl Unpin for NoopProducer
impl UnsafeUnpin for NoopProducer
impl UnwindSafe for NoopProducer
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