pub struct SpatioClient { /* private fields */ }Implementations§
Source§impl SpatioClient
impl SpatioClient
pub fn new(host: String, port: u16) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub async fn upsert( &self, namespace: &str, object_id: &str, point: Point3d, metadata: Value, opts: Option<SetOptions>, ) -> Result<()>
pub async fn get( &self, namespace: &str, object_id: &str, ) -> Result<Option<(Point3d, Value)>>
pub async fn query_radius( &self, namespace: &str, center: &Point3d, radius: f64, limit: usize, ) -> Result<Vec<(String, Point3d, Value, f64)>>
pub async fn knn( &self, namespace: &str, center: &Point3d, k: usize, ) -> Result<Vec<(String, Point3d, Value, f64)>>
pub async fn stats(&self) -> Result<DbStats>
pub async fn delete(&self, namespace: &str, object_id: &str) -> Result<()>
pub async fn query_bbox( &self, namespace: &str, min_x: f64, min_y: f64, max_x: f64, max_y: f64, limit: usize, ) -> Result<Vec<(String, Point3d, Value)>>
pub async fn insert_trajectory( &self, namespace: &str, object_id: &str, trajectory: Vec<TemporalPoint>, ) -> Result<()>
pub async fn query_trajectory( &self, namespace: &str, object_id: &str, start_time: SystemTime, end_time: SystemTime, limit: usize, ) -> Result<Vec<(Point3d, Value, SystemTime)>>
Auto Trait Implementations§
impl !Freeze for SpatioClient
impl !RefUnwindSafe for SpatioClient
impl Send for SpatioClient
impl Sync for SpatioClient
impl Unpin for SpatioClient
impl UnwindSafe for SpatioClient
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> 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