[−][src]Struct tdb_cli::client::TectonicClient
Fields
stream: BufStream<TcpStream>
host: String
port: 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]
&mut self,
book_name: &str
) -> Result<Orderbook, TectonicError>
pub fn subscribe(
self,
book_name: &str
) -> Result<Receiver<Update>, TectonicError>
[src]
self,
book_name: &str
) -> Result<Receiver<Update>, TectonicError>
pub fn insert_text(
&mut self,
book_name: String,
update: &Update
) -> Result<String, TectonicError>
[src]
&mut self,
book_name: String,
update: &Update
) -> Result<String, TectonicError>
Deprecated
pub fn insert(
&mut self,
book_name: Option<&str>,
update: &Update,
discard_result: bool
) -> Result<bool, TectonicError>
[src]
&mut self,
book_name: Option<&str>,
update: &Update,
discard_result: bool
) -> Result<bool, TectonicError>
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
impl RefUnwindSafe for TectonicClient
impl Send for TectonicClient
impl Sync for TectonicClient
impl Unpin for TectonicClient
impl UnwindSafe for TectonicClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,