pub struct MemoryLane { /* private fields */ }Expand description
Data-plane lane of a MemorySource: drains pushed payloads for one
partition. Polls block (up to the timeout) while the lane is paused or
its queue is empty, waking on push and resume.
Trait Implementations§
Source§impl Debug for MemoryLane
impl Debug for MemoryLane
Source§impl SourceLane for MemoryLane
impl SourceLane for MemoryLane
Source§type Batch<'a> = MemoryBatch<'a>
type Batch<'a> = MemoryBatch<'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<MemoryBatch<'_>>, SourceError>
fn poll( &mut self, max_records: usize, timeout: Duration, ) -> Result<Option<MemoryBatch<'_>>, 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 MemoryLane
impl RefUnwindSafe for MemoryLane
impl Send for MemoryLane
impl Sync for MemoryLane
impl Unpin for MemoryLane
impl UnsafeUnpin for MemoryLane
impl UnwindSafe for MemoryLane
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