Struct flatgeobuf::HttpFgbReader
source · [−]pub struct HttpFgbReader<State = Initial> { /* private fields */ }
Expand description
FlatGeobuf dataset HTTP reader
Implementations
sourceimpl HttpFgbReader<Initial>
impl HttpFgbReader<Initial>
pub async fn open(url: &str) -> Result<HttpFgbReader<Open>>
sourceimpl HttpFgbReader<Open>
impl HttpFgbReader<Open>
pub fn header(&self) -> Header<'_>
sourcepub async fn select_all(self) -> Result<HttpFgbReader<FeaturesSelected>>
pub async fn select_all(self) -> Result<HttpFgbReader<FeaturesSelected>>
Select all features.
sourcepub async fn select_bbox(
self,
min_x: f64,
min_y: f64,
max_x: f64,
max_y: f64
) -> Result<HttpFgbReader<FeaturesSelected>>
pub async fn select_bbox(
self,
min_x: f64,
min_y: f64,
max_x: f64,
max_y: f64
) -> Result<HttpFgbReader<FeaturesSelected>>
Select features within a bounding box.
sourceimpl HttpFgbReader<FeaturesSelected>
impl HttpFgbReader<FeaturesSelected>
pub fn header(&self) -> Header<'_>
sourcepub fn features_count(&self) -> Option<usize>
pub fn features_count(&self) -> Option<usize>
Number of selected features (might be unknown)
sourcepub async fn next(&mut self) -> Result<Option<&FgbFeature>>
pub async fn next(&mut self) -> Result<Option<&FgbFeature>>
Read next feature
sourcepub fn cur_feature(&self) -> &FgbFeature
pub fn cur_feature(&self) -> &FgbFeature
Return current feature
sourcepub async fn process_features<W: FeatureProcessor>(
&mut self,
out: &mut W
) -> Result<()>
pub async fn process_features<W: FeatureProcessor>(
&mut self,
out: &mut W
) -> Result<()>
Read and process all selected features
Auto Trait Implementations
impl<State = Initial> !RefUnwindSafe for HttpFgbReader<State>
impl<State> Send for HttpFgbReader<State> where
State: Send,
impl<State> Sync for HttpFgbReader<State> where
State: Sync,
impl<State> Unpin for HttpFgbReader<State> where
State: Unpin,
impl<State = Initial> !UnwindSafe for HttpFgbReader<State>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more