pub trait SpatialRecordSource {
// Required methods
fn schema(&self) -> &SchemaDescriptor;
fn next_record(&mut self) -> Option<RecordsResult<SpatialRecord>>;
}Expand description
Pull-based source of versioned spatial records.
Required Methods§
Sourcefn schema(&self) -> &SchemaDescriptor
fn schema(&self) -> &SchemaDescriptor
Returns the schema contract for every emitted record.
Sourcefn next_record(&mut self) -> Option<RecordsResult<SpatialRecord>>
fn next_record(&mut self) -> Option<RecordsResult<SpatialRecord>>
Returns the next record, or None when exhausted.