Struct nazar::t38::Client [] [src]

pub struct Client<'a> { /* fields omitted */ }

Methods

impl<'a> Client<'a>
[src]

Constructor with one argument - Rust convention!

cmd takes and sets a Tile38 command

Use arg to construct a Tile38 command. Although this does not work for 'Field' yet. Supports only &str and String args only

Example

n.arg("POINT").arg("23").arg("321");

Pings the Tile38 server running at the given url. It should be used to check if the server is alive or dead!

Arguments

  • url - URL at which a Tile38 server instance is running

Example

use nazar::t38::{Client} let is_live = Client::ping("redis://127.0.0.1:9851");

execute_with_args executes Tile38 query

low level API

Open a static geofence! where work is closure

open fence using GeoJSON Uses T38's WITHIN command where work is closure

Open a static geofence! takes a function of type fn(&NazarSender, String) NazarSender represents a WebSocket connection and String is the message from server.

open fence using GeoJSON Uses T38's WITHIN command Takes a function of type fn(&NazarSender, String) NazarSender represents a WebSocket connection and String is the message from server.

open a circular geofence and send the fence updates on the provided client - a WebSocket Connection

open a polygonal geofence using and send the fence updates on the provided client - a WebSocket Connection