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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".