pub struct KafkaRestCommitLog { /* private fields */ }
Expand description
A commit log holds topics and can be appended to and tailed.
Implementations§
Trait Implementations§
Source§impl Clone for KafkaRestCommitLog
impl Clone for KafkaRestCommitLog
Source§fn clone(&self) -> KafkaRestCommitLog
fn clone(&self) -> KafkaRestCommitLog
Returns a duplicate 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 moreSource§impl CommitLog for KafkaRestCommitLog
impl CommitLog for KafkaRestCommitLog
Source§fn scoped_subscribe<'a>(
&'a self,
consumer_group_name: &str,
offsets: Vec<ConsumerOffset>,
subscriptions: Vec<Subscription>,
idle_timeout: Option<Duration>,
) -> Pin<Box<dyn Stream<Item = ConsumerRecord> + Send + 'a>>
fn scoped_subscribe<'a>( &'a self, consumer_group_name: &str, offsets: Vec<ConsumerOffset>, subscriptions: Vec<Subscription>, idle_timeout: Option<Duration>, ) -> Pin<Box<dyn Stream<Item = ConsumerRecord> + Send + 'a>>
Subscribe to one or more topics for a given consumer group having committed zero or more topics. Connections are retried if they cannot be established, or become lost. Once a connection is established then records are streamed back indefinitely unless an idle timeout argument is provided. In the case of an idle timeout, if no record is received within that period, None is returned to end the stream.
Source§fn offsets<'life0, 'async_trait>(
&'life0 self,
topic: Topic,
partition: u32,
) -> Pin<Box<dyn Future<Output = Option<PartitionOffsets>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn offsets<'life0, 'async_trait>(
&'life0 self,
topic: Topic,
partition: u32,
) -> Pin<Box<dyn Future<Output = Option<PartitionOffsets>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve the current offsets of a topic if they are present.
Source§fn produce<'life0, 'async_trait>(
&'life0 self,
record: ProducerRecord,
) -> Pin<Box<dyn Future<Output = Result<ProducedOffset, ProducerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn produce<'life0, 'async_trait>(
&'life0 self,
record: ProducerRecord,
) -> Pin<Box<dyn Future<Output = Result<ProducedOffset, ProducerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publish a record and return the offset that was assigned.
Auto Trait Implementations§
impl Freeze for KafkaRestCommitLog
impl !RefUnwindSafe for KafkaRestCommitLog
impl Send for KafkaRestCommitLog
impl Sync for KafkaRestCommitLog
impl Unpin for KafkaRestCommitLog
impl !UnwindSafe for KafkaRestCommitLog
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