Struct dataflow::render::sources::PersistedSourceManager[][src]

pub struct PersistedSourceManager {
    compaction_handles: HashMap<GlobalId, Weak<BoundedCompactionHandle>>,
}
Expand description

A PersistedSourceManager stores maps from global identifiers to the one rendered persistent instance of a source.

NOTE: There can only ever be one running (rendered) instance of a persisted source. The manager will panic when trying to add more than one instance for a given source id.

Fields

compaction_handles: HashMap<GlobalId, Weak<BoundedCompactionHandle>>

Handles that allow setting the compaction frontier for a persisted source.

Implementations

Binds the given frontier_probe and compaction_handle to the source_id. This will panic if there is already a source for the given id. This returns a “token” that should be stashed in the customary places to prevent the stored information from vanishing before its time.

Enables compaction of sources associated with the identifier.

Removes the maintained state for source id.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more