Struct RpcSession

Source
pub struct RpcSession { /* private fields */ }

Implementations§

Source§

impl RpcSession

Source

pub fn new(config: Config) -> Result<Self>

Trait Implementations§

Source§

impl Drop for RpcSession

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'a> Session<'a> for RpcSession

Source§

fn open(&mut self) -> Result<()>

Source§

fn close(&mut self) -> Result<()>

Source§

fn set_storage_group(&mut self, storage_group_id: &str) -> Result<()>

Source§

fn delete_storage_group(&mut self, storage_group_id: &str) -> Result<()>

Source§

fn delete_storage_groups(&mut self, storage_group_ids: Vec<&str>) -> Result<()>

Source§

fn create_timeseries<T>( &mut self, path: &str, data_type: TSDataType, encoding: TSEncoding, compressor: TSCompressionType, props: T, attributes: T, tags: T, measurement_alias: Option<String>, ) -> Result<()>
where T: Into<Option<Dictionary>>,

Source§

fn create_multi_timeseries<T>( &mut self, paths: Vec<&str>, data_types: Vec<TSDataType>, encodings: Vec<TSEncoding>, compressors: Vec<TSCompressionType>, props_list: T, attributes_list: T, tags_list: T, measurement_alias_list: Option<Vec<String>>, ) -> Result<()>
where T: Into<Option<Vec<Dictionary>>>,

Source§

fn delete_timeseries(&mut self, paths: Vec<&str>) -> Result<()>

Source§

fn delete_data( &mut self, paths: Vec<&str>, start_time: i64, end_time: i64, ) -> Result<()>

Source§

fn insert_string_record<T>( &mut self, device_id: &str, measurements: Vec<&str>, values: Vec<&str>, timestamp: i64, is_aligned: T, ) -> Result<()>
where T: Into<Option<bool>>,

Source§

fn get_time_zone(&mut self) -> Result<String>

Source§

fn set_time_zone(&mut self, time_zone: &str) -> Result<()>

Source§

fn execute_statement<T>( &'a mut self, statement: &str, timeout_ms: T, ) -> Result<Box<dyn DataSet + 'a>>
where T: Into<Option<i64>>,

Source§

fn execute_query_statement<T>( &'a mut self, statement: &str, timeout_ms: T, ) -> Result<Box<dyn DataSet + 'a>>
where T: Into<Option<i64>>,

Source§

fn insert_record<T>( &mut self, device_id: &str, measurements: Vec<&str>, values: Vec<Value>, timestamp: i64, is_aligned: T, ) -> Result<()>
where T: Into<Option<bool>>,

Source§

fn insert_records_of_one_device( &mut self, device_id: &str, timestamps: Vec<i64>, measurements: Vec<Vec<&str>>, values: Vec<Vec<Value>>, sorted: bool, ) -> Result<()>

Source§

fn insert_records( &mut self, prefix_path: Vec<&str>, measurements: Vec<Vec<&str>>, values: Vec<Vec<Value>>, timestamps: Vec<i64>, ) -> Result<()>

Source§

fn insert_tablet(&mut self, tablet: &Tablet) -> Result<()>

Source§

fn insert_tablets(&mut self, tablets: Vec<&Tablet>) -> Result<()>

Source§

fn execute_batch_statement(&mut self, statemens: Vec<&str>) -> Result<()>

Source§

fn execute_raw_data_query( &'a mut self, paths: Vec<&str>, start_time: i64, end_time: i64, ) -> Result<Box<dyn DataSet + 'a>>

Source§

fn execute_update_statement( &'a mut self, statement: &str, ) -> Result<Option<Box<dyn DataSet + 'a>>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.