pub struct CacheSource<T, S: CacheReplayer<T>> { /* private fields */ }Trait Implementations§
Source§impl<T: Clone, S: CacheReplayer<T>> Clone for CacheSource<T, S>
impl<T: Clone, S: CacheReplayer<T>> Clone for CacheSource<T, S>
Source§impl<T, S: CacheReplayer<T>> Display for CacheSource<T, S>
impl<T, S: CacheReplayer<T>> Display for CacheSource<T, S>
Source§impl<T: Data, S: CacheReplayer<T> + Send> Operator for CacheSource<T, S>
impl<T: Data, S: CacheReplayer<T> + Send> Operator for CacheSource<T, S>
type Out = T
Source§fn setup(&mut self, metadata: &mut ExecutionMetadata<'_>)
fn setup(&mut self, metadata: &mut ExecutionMetadata<'_>)
Setup the operator chain. This is called before any call to
next and it’s used to
initialize the operator. When it’s called the operator has already been cloned and it will
never be cloned again. Therefore it’s safe to store replica-specific metadata inside of it. Read moreSource§fn next(&mut self) -> StreamElement<T>
fn next(&mut self) -> StreamElement<T>
Take a value from the previous operator, process it and return it.
Source§fn structure(&self) -> BlockStructure
fn structure(&self) -> BlockStructure
A more refined representation of the operator and its predecessors.
Source§impl<T: Clone + Send + 'static, S: CacheReplayer<T>> Source for CacheSource<T, S>
impl<T: Clone + Send + 'static, S: CacheReplayer<T>> Source for CacheSource<T, S>
Source§fn replication(&self) -> Replication
fn replication(&self) -> Replication
The maximum parallelism offered by this operator.
Auto Trait Implementations§
impl<T, S> Freeze for CacheSource<T, S>where
S: Freeze,
impl<T, S> !RefUnwindSafe for CacheSource<T, S>
impl<T, S> Send for CacheSource<T, S>where
T: Send,
impl<T, S> Sync for CacheSource<T, S>
impl<T, S> Unpin for CacheSource<T, S>where
S: Unpin,
impl<T, S> UnsafeUnpin for CacheSource<T, S>where
S: UnsafeUnpin,
impl<T, S> !UnwindSafe for CacheSource<T, S>
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