Struct TCLIServiceSyncClient

Source
pub struct TCLIServiceSyncClient<IP, OP>{ /* private fields */ }

Implementations§

Source§

impl<IP, OP> TCLIServiceSyncClient<IP, OP>

Source

pub fn new( input_protocol: IP, output_protocol: OP, ) -> TCLIServiceSyncClient<IP, OP>

Trait Implementations§

Source§

impl<IP, OP> TThriftClient for TCLIServiceSyncClient<IP, OP>

Source§

fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol

Returns the input protocol used to read serialized Thrift messages from the Thrift server.
Source§

fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol

Returns the output protocol used to write serialized Thrift messages to the Thrift server.
Source§

fn sequence_number(&self) -> i32

Returns the sequence number of the last message written to the Thrift server. Returns 0 if no messages have been written. Sequence numbers should never be negative, and this method returns an i32 simply because the Thrift protocol encodes sequence numbers as i32 on the wire.
Source§

fn increment_sequence_number(&mut self) -> i32

Increments the sequence number, indicating that a message with that number has been sent to the Thrift server.
Source§

impl<IP, OP> TTCLIServiceSyncClientMarker for TCLIServiceSyncClient<IP, OP>

Auto Trait Implementations§

§

impl<IP, OP> Freeze for TCLIServiceSyncClient<IP, OP>
where IP: Freeze, OP: Freeze,

§

impl<IP, OP> RefUnwindSafe for TCLIServiceSyncClient<IP, OP>

§

impl<IP, OP> Send for TCLIServiceSyncClient<IP, OP>
where IP: Send, OP: Send,

§

impl<IP, OP> Sync for TCLIServiceSyncClient<IP, OP>
where IP: Sync, OP: Sync,

§

impl<IP, OP> Unpin for TCLIServiceSyncClient<IP, OP>
where IP: Unpin, OP: Unpin,

§

impl<IP, OP> UnwindSafe for TCLIServiceSyncClient<IP, OP>
where IP: UnwindSafe, OP: UnwindSafe,

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<C> TTCLIServiceSyncClient for C

Source§

fn open_session( &mut self, req: TOpenSessionReq, ) -> Result<TOpenSessionResp, Error>

Source§

fn close_session( &mut self, req: TCloseSessionReq, ) -> Result<TCloseSessionResp, Error>

Source§

fn get_info(&mut self, req: TGetInfoReq) -> Result<TGetInfoResp, Error>

Source§

fn execute_statement( &mut self, req: TExecuteStatementReq, ) -> Result<TExecuteStatementResp, Error>

Source§

fn get_type_info( &mut self, req: TGetTypeInfoReq, ) -> Result<TGetTypeInfoResp, Error>

Source§

fn get_catalogs( &mut self, req: TGetCatalogsReq, ) -> Result<TGetCatalogsResp, Error>

Source§

fn get_schemas(&mut self, req: TGetSchemasReq) -> Result<TGetSchemasResp, Error>

Source§

fn get_tables(&mut self, req: TGetTablesReq) -> Result<TGetTablesResp, Error>

Source§

fn get_table_types( &mut self, req: TGetTableTypesReq, ) -> Result<TGetTableTypesResp, Error>

Source§

fn get_columns(&mut self, req: TGetColumnsReq) -> Result<TGetColumnsResp, Error>

Source§

fn get_functions( &mut self, req: TGetFunctionsReq, ) -> Result<TGetFunctionsResp, Error>

Source§

fn get_primary_keys( &mut self, req: TGetPrimaryKeysReq, ) -> Result<TGetPrimaryKeysResp, Error>

Source§

fn get_cross_reference( &mut self, req: TGetCrossReferenceReq, ) -> Result<TGetCrossReferenceResp, Error>

Source§

fn get_operation_status( &mut self, req: TGetOperationStatusReq, ) -> Result<TGetOperationStatusResp, Error>

Source§

fn cancel_operation( &mut self, req: TCancelOperationReq, ) -> Result<TCancelOperationResp, Error>

Source§

fn close_operation( &mut self, req: TCloseOperationReq, ) -> Result<TCloseOperationResp, Error>

Source§

fn get_result_set_metadata( &mut self, req: TGetResultSetMetadataReq, ) -> Result<TGetResultSetMetadataResp, Error>

Source§

fn fetch_results( &mut self, req: TFetchResultsReq, ) -> Result<TFetchResultsResp, Error>

Source§

fn get_delegation_token( &mut self, req: TGetDelegationTokenReq, ) -> Result<TGetDelegationTokenResp, Error>

Source§

fn cancel_delegation_token( &mut self, req: TCancelDelegationTokenReq, ) -> Result<TCancelDelegationTokenResp, Error>

Source§

fn renew_delegation_token( &mut self, req: TRenewDelegationTokenReq, ) -> Result<TRenewDelegationTokenResp, Error>

Source§

fn get_query_id( &mut self, req: TGetQueryIdReq, ) -> Result<TGetQueryIdResp, Error>

Source§

fn set_client_info( &mut self, req: TSetClientInfoReq, ) -> Result<TSetClientInfoResp, Error>

Source§

fn upload_data(&mut self, req: TUploadDataReq) -> Result<TUploadDataResp, Error>

Source§

fn download_data( &mut self, req: TDownloadDataReq, ) -> Result<TDownloadDataResp, Error>

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.