Struct exar_client::Client [] [src]

pub struct Client { /* fields omitted */ }

Methods

impl Client
[src]

Connects to the given address and collection, optionally using the credentials provided, it returns a Client or a DatabaseError if a failure occurs.

Publishes an event and returns the id for the event created or a DatabaseError if a failure occurs.

Subscribes using the given query and returns an event stream or a DatabaseError if a failure occurs.

Closes the connection.