pub struct KafkaLane { /* private fields */ }Expand description
One assigned partition’s pollable queue.
Trait Implementations§
Source§impl SourceLane for KafkaLane
impl SourceLane for KafkaLane
Source§type Batch<'a> = KafkaBatch<'a>
type Batch<'a> = KafkaBatch<'a>
The borrowed batch type (a GAT so payloads can borrow lane buffers).
Source§fn partition(&self) -> PartitionId
fn partition(&self) -> PartitionId
The source partition this lane reads. Used for checkpoint issuing
and shard routing fallback.
Source§fn poll(
&mut self,
max_records: usize,
timeout: Duration,
) -> Result<Option<Self::Batch<'_>>, SourceError>
fn poll( &mut self, max_records: usize, timeout: Duration, ) -> Result<Option<Self::Batch<'_>>, SourceError>
Poll up to
max_records payloads, waiting at most timeout.
Ok(None) means nothing arrived — the driver treats it as idle.
Implementations must not busy-spin when idle: block up to timeout.Auto Trait Implementations§
impl Freeze for KafkaLane
impl !RefUnwindSafe for KafkaLane
impl Send for KafkaLane
impl Sync for KafkaLane
impl Unpin for KafkaLane
impl UnsafeUnpin for KafkaLane
impl !UnwindSafe for KafkaLane
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