pub struct IntervalSourceFactory { /* private fields */ }Expand description
Config-driven SourceFactory for IntervalPipe. spec carries the
tick period in milliseconds; the inner handler and name are supplied by
the caller building the factory instance (mirrors the request-factory
boundary: the factory decides shape, the handler decides content).
Implementations§
Source§impl IntervalSourceFactory
impl IntervalSourceFactory
Sourcepub fn new(name: impl Into<String>, inner: PipeHandle) -> Self
pub fn new(name: impl Into<String>, inner: PipeHandle) -> Self
Register a thin factory that builds an IntervalPipe under name,
dispatching every tick to inner.
Trait Implementations§
Source§impl Named for IntervalSourceFactory
impl Named for IntervalSourceFactory
Source§impl SourceFactory for IntervalSourceFactory
impl SourceFactory for IntervalSourceFactory
Source§fn build(&self, spec: &Value) -> Result<SourceHandle, ProximaError>
fn build(&self, spec: &Value) -> Result<SourceHandle, ProximaError>
Build a source from a config spec. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for IntervalSourceFactory
impl !UnwindSafe for IntervalSourceFactory
impl Freeze for IntervalSourceFactory
impl Send for IntervalSourceFactory
impl Sync for IntervalSourceFactory
impl Unpin for IntervalSourceFactory
impl UnsafeUnpin for IntervalSourceFactory
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