pub struct AsyncSource<P: Send + 'static> { /* private fields */ }Expand description
Zellquelle mit Worker-Pool (siehe Modul-Doku).
Determinismus-Hinweis: Die Reihenfolge, in der Zellen fertig
werden, bestimmt die Laufzeit — der Streamer
pollt sie trotzdem in seiner festen Prioritätsordnung, und alle
Budget- und Verdrängungs-Entscheidungen bleiben reproduzierbar.
Implementations§
Source§impl<P: Send + 'static> AsyncSource<P>
impl<P: Send + 'static> AsyncSource<P>
Sourcepub fn new<S: BlockStore>(store: S, codec: CellCodec<P>, workers: usize) -> Self
pub fn new<S: BlockStore>(store: S, codec: CellCodec<P>, workers: usize) -> Self
workers hintere Store-Threads; 0 wird zu 1. Der Pool lebt, bis
die Quelle fällt — dann schließen sich die Kanäle und die Worker
beenden sich von selbst.
Sourcepub fn pending_results(&self) -> usize
pub fn pending_results(&self) -> usize
Anzahl noch nicht abgeholter fertiger Zellen (Diagnose/Tests).
Trait Implementations§
Auto Trait Implementations§
impl<P> !Sync for AsyncSource<P>
impl<P> Freeze for AsyncSource<P>
impl<P> RefUnwindSafe for AsyncSource<P>where
P: RefUnwindSafe,
impl<P> Send for AsyncSource<P>
impl<P> Unpin for AsyncSource<P>where
P: Unpin,
impl<P> UnsafeUnpin for AsyncSource<P>
impl<P> UnwindSafe for AsyncSource<P>where
P: UnwindSafe,
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