pub struct Handler { /* private fields */ }Implementations§
Trait Implementations§
Source§impl SpatioService for Handler
impl SpatioService for Handler
async fn upsert( self, _: Context, namespace: String, id: String, point: Point3d, metadata: Value, opts: Option<UpsertOptions>, ) -> Result<(), String>
async fn get( self, _: Context, namespace: String, id: String, ) -> Result<Option<CurrentLocation>, String>
async fn delete( self, _: Context, namespace: String, id: String, ) -> Result<(), String>
async fn query_radius( self, _: Context, namespace: String, center: Point3d, radius: f64, limit: usize, ) -> Result<Vec<(CurrentLocation, f64)>, String>
async fn knn( self, _: Context, namespace: String, center: Point3d, k: usize, ) -> Result<Vec<(CurrentLocation, f64)>, String>
async fn stats(self, _: Context) -> Stats
async fn query_bbox( self, _: Context, namespace: String, min_x: f64, min_y: f64, max_x: f64, max_y: f64, limit: usize, ) -> Result<Vec<CurrentLocation>, String>
async fn query_cylinder( self, _: Context, namespace: String, center: Point, min_z: f64, max_z: f64, radius: f64, limit: usize, ) -> Result<Vec<(CurrentLocation, f64)>, String>
async fn query_trajectory( self, _: Context, namespace: String, id: String, start_time: Option<f64>, end_time: Option<f64>, limit: usize, ) -> Result<Vec<LocationUpdate>, String>
async fn insert_trajectory( self, _: Context, namespace: String, id: String, trajectory: Vec<(f64, Point3d, Value)>, ) -> Result<(), String>
async fn query_bbox_3d( self, _: Context, namespace: String, min_x: f64, min_y: f64, min_z: f64, max_x: f64, max_y: f64, max_z: f64, limit: usize, ) -> Result<Vec<CurrentLocation>, String>
async fn query_near( self, _: Context, namespace: String, id: String, radius: f64, limit: usize, ) -> Result<Vec<(CurrentLocation, f64)>, String>
async fn contains( self, _: Context, namespace: String, polygon: Polygon, limit: usize, ) -> Result<Vec<CurrentLocation>, String>
async fn distance( self, _: Context, namespace: String, id1: String, id2: String, metric: Option<DistanceMetric>, ) -> Result<Option<f64>, String>
async fn distance_to( self, _: Context, namespace: String, id: String, point: Point, metric: Option<DistanceMetric>, ) -> Result<Option<f64>, String>
async fn convex_hull( self, _: Context, namespace: String, ) -> Result<Option<Polygon>, String>
async fn bounding_box( self, _: Context, namespace: String, ) -> Result<Option<BoundingBox2D>, String>
Source§fn serve(self) -> ServeSpatioService<Self>
fn serve(self) -> ServeSpatioService<Self>
Returns a serving function to use with
InFlightRequest::execute.
Auto Trait Implementations§
impl Freeze for Handler
impl !RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl !UnwindSafe for Handler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more