pub struct DeferredInput { /* private fields */ }Expand description
A placeholder input for a view whose pipeline is not built yet.
Until attach it behaves like an empty pipeline: fetch
yields nothing and nothing is pushed. attach builds the real pipeline
and hydrates the output with its rows as add changes, as if they had just
arrived.
Implementations§
Source§impl DeferredInput
impl DeferredInput
Sourcepub fn new(schema: Rc<SourceSchema>, build: BuildPipeline) -> Rc<Self>
pub fn new(schema: Rc<SourceSchema>, build: BuildPipeline) -> Rc<Self>
schema is what the built pipeline reports; build builds it.
pub fn attached(&self) -> bool
pub fn destroyed(&self) -> bool
Sourcepub fn attach(&self) -> Result<(), PipelineError>
pub fn attach(&self) -> Result<(), PipelineError>
Builds the pipeline and pushes its rows to the output. Leaves this input unattached when building or hydrating fails.
Trait Implementations§
Source§impl Input for DeferredInput
impl Input for DeferredInput
fn set_output(&self, output: Weak<dyn Output>)
fn fetch(&self, req: &FetchRequest) -> NodeStream
Source§impl InputBase for DeferredInput
impl InputBase for DeferredInput
fn get_schema(&self) -> Rc<SourceSchema>
fn destroy(&self)
Auto Trait Implementations§
impl !Freeze for DeferredInput
impl !RefUnwindSafe for DeferredInput
impl !Send for DeferredInput
impl !Sync for DeferredInput
impl !UnwindSafe for DeferredInput
impl Forget for DeferredInput
impl Move for DeferredInput
impl Unpin for DeferredInput
impl UnsafeUnpin for DeferredInput
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