[][src]Struct tdb_cli::client::TectonicClient

pub struct TectonicClient {
    pub stream: BufStream<TcpStream>,
    pub host: String,
    pub port: String,
}

Fields

stream: BufStream<TcpStream>host: Stringport: String

Methods

impl TectonicClient[src]

pub fn new(host: &str, port: &str) -> Result<TectonicClient, TectonicError>[src]

pub fn reconnect(&mut self) -> Result<(), TectonicError>[src]

pub fn cmd(&mut self, command: &str) -> Result<String, TectonicError>[src]

pub fn create_db(&mut self, book_name: &str) -> Result<String, TectonicError>[src]

pub fn use_db(&mut self, book_name: &str) -> Result<String, TectonicError>[src]

pub fn orderbook_snapshot(
    &mut self,
    book_name: &str
) -> Result<Orderbook, TectonicError>
[src]

pub fn subscribe(
    self,
    book_name: &str
) -> Result<Receiver<Update>, TectonicError>
[src]

pub fn insert_text(
    &mut self,
    book_name: String,
    update: &Update
) -> Result<String, TectonicError>
[src]

Deprecated

pub fn insert(
    &mut self,
    book_name: Option<&str>,
    update: &Update,
    discard_result: bool
) -> Result<bool, TectonicError>
[src]

you can achieve very high throughput by setting discard_result to true send an insert command without reading the output from tdb server

pub fn shutdown(self)[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,