pub struct SpannerClient {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

source§

impl SpannerClient

source

pub fn new(channel: Channel) -> Self

source

pub fn create_session_opt( &self, req: &CreateSessionRequest, opt: CallOption ) -> Result<Session>

source

pub fn create_session(&self, req: &CreateSessionRequest) -> Result<Session>

source

pub fn create_session_async_opt( &self, req: &CreateSessionRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<Session>>

source

pub fn create_session_async( &self, req: &CreateSessionRequest ) -> Result<ClientUnaryReceiver<Session>>

source

pub fn batch_create_sessions_opt( &self, req: &BatchCreateSessionsRequest, opt: CallOption ) -> Result<BatchCreateSessionsResponse>

source

pub fn batch_create_sessions( &self, req: &BatchCreateSessionsRequest ) -> Result<BatchCreateSessionsResponse>

source

pub fn batch_create_sessions_async_opt( &self, req: &BatchCreateSessionsRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<BatchCreateSessionsResponse>>

source

pub fn batch_create_sessions_async( &self, req: &BatchCreateSessionsRequest ) -> Result<ClientUnaryReceiver<BatchCreateSessionsResponse>>

source

pub fn get_session_opt( &self, req: &GetSessionRequest, opt: CallOption ) -> Result<Session>

source

pub fn get_session(&self, req: &GetSessionRequest) -> Result<Session>

source

pub fn get_session_async_opt( &self, req: &GetSessionRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<Session>>

source

pub fn get_session_async( &self, req: &GetSessionRequest ) -> Result<ClientUnaryReceiver<Session>>

source

pub fn list_sessions_opt( &self, req: &ListSessionsRequest, opt: CallOption ) -> Result<ListSessionsResponse>

source

pub fn list_sessions( &self, req: &ListSessionsRequest ) -> Result<ListSessionsResponse>

source

pub fn list_sessions_async_opt( &self, req: &ListSessionsRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<ListSessionsResponse>>

source

pub fn list_sessions_async( &self, req: &ListSessionsRequest ) -> Result<ClientUnaryReceiver<ListSessionsResponse>>

source

pub fn delete_session_opt( &self, req: &DeleteSessionRequest, opt: CallOption ) -> Result<Empty>

source

pub fn delete_session(&self, req: &DeleteSessionRequest) -> Result<Empty>

source

pub fn delete_session_async_opt( &self, req: &DeleteSessionRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<Empty>>

source

pub fn delete_session_async( &self, req: &DeleteSessionRequest ) -> Result<ClientUnaryReceiver<Empty>>

source

pub fn execute_sql_opt( &self, req: &ExecuteSqlRequest, opt: CallOption ) -> Result<ResultSet>

source

pub fn execute_sql(&self, req: &ExecuteSqlRequest) -> Result<ResultSet>

source

pub fn execute_sql_async_opt( &self, req: &ExecuteSqlRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<ResultSet>>

source

pub fn execute_sql_async( &self, req: &ExecuteSqlRequest ) -> Result<ClientUnaryReceiver<ResultSet>>

source

pub fn execute_streaming_sql_opt( &self, req: &ExecuteSqlRequest, opt: CallOption ) -> Result<ClientSStreamReceiver<PartialResultSet>>

source

pub fn execute_streaming_sql( &self, req: &ExecuteSqlRequest ) -> Result<ClientSStreamReceiver<PartialResultSet>>

source

pub fn execute_batch_dml_opt( &self, req: &ExecuteBatchDmlRequest, opt: CallOption ) -> Result<ExecuteBatchDmlResponse>

source

pub fn execute_batch_dml( &self, req: &ExecuteBatchDmlRequest ) -> Result<ExecuteBatchDmlResponse>

source

pub fn execute_batch_dml_async_opt( &self, req: &ExecuteBatchDmlRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<ExecuteBatchDmlResponse>>

source

pub fn execute_batch_dml_async( &self, req: &ExecuteBatchDmlRequest ) -> Result<ClientUnaryReceiver<ExecuteBatchDmlResponse>>

source

pub fn read_opt(&self, req: &ReadRequest, opt: CallOption) -> Result<ResultSet>

source

pub fn read(&self, req: &ReadRequest) -> Result<ResultSet>

source

pub fn read_async_opt( &self, req: &ReadRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<ResultSet>>

source

pub fn read_async( &self, req: &ReadRequest ) -> Result<ClientUnaryReceiver<ResultSet>>

source

pub fn streaming_read_opt( &self, req: &ReadRequest, opt: CallOption ) -> Result<ClientSStreamReceiver<PartialResultSet>>

source

pub fn streaming_read( &self, req: &ReadRequest ) -> Result<ClientSStreamReceiver<PartialResultSet>>

source

pub fn begin_transaction_opt( &self, req: &BeginTransactionRequest, opt: CallOption ) -> Result<Transaction>

source

pub fn begin_transaction( &self, req: &BeginTransactionRequest ) -> Result<Transaction>

source

pub fn begin_transaction_async_opt( &self, req: &BeginTransactionRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<Transaction>>

source

pub fn begin_transaction_async( &self, req: &BeginTransactionRequest ) -> Result<ClientUnaryReceiver<Transaction>>

source

pub fn commit_opt( &self, req: &CommitRequest, opt: CallOption ) -> Result<CommitResponse>

source

pub fn commit(&self, req: &CommitRequest) -> Result<CommitResponse>

source

pub fn commit_async_opt( &self, req: &CommitRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<CommitResponse>>

source

pub fn commit_async( &self, req: &CommitRequest ) -> Result<ClientUnaryReceiver<CommitResponse>>

source

pub fn rollback_opt( &self, req: &RollbackRequest, opt: CallOption ) -> Result<Empty>

source

pub fn rollback(&self, req: &RollbackRequest) -> Result<Empty>

source

pub fn rollback_async_opt( &self, req: &RollbackRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<Empty>>

source

pub fn rollback_async( &self, req: &RollbackRequest ) -> Result<ClientUnaryReceiver<Empty>>

source

pub fn partition_query_opt( &self, req: &PartitionQueryRequest, opt: CallOption ) -> Result<PartitionResponse>

source

pub fn partition_query( &self, req: &PartitionQueryRequest ) -> Result<PartitionResponse>

source

pub fn partition_query_async_opt( &self, req: &PartitionQueryRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<PartitionResponse>>

source

pub fn partition_query_async( &self, req: &PartitionQueryRequest ) -> Result<ClientUnaryReceiver<PartitionResponse>>

source

pub fn partition_read_opt( &self, req: &PartitionReadRequest, opt: CallOption ) -> Result<PartitionResponse>

source

pub fn partition_read( &self, req: &PartitionReadRequest ) -> Result<PartitionResponse>

source

pub fn partition_read_async_opt( &self, req: &PartitionReadRequest, opt: CallOption ) -> Result<ClientUnaryReceiver<PartitionResponse>>

source

pub fn partition_read_async( &self, req: &PartitionReadRequest ) -> Result<ClientUnaryReceiver<PartitionResponse>>

source

pub fn batch_write_opt( &self, req: &BatchWriteRequest, opt: CallOption ) -> Result<ClientSStreamReceiver<BatchWriteResponse>>

source

pub fn batch_write( &self, req: &BatchWriteRequest ) -> Result<ClientSStreamReceiver<BatchWriteResponse>>

source

pub fn spawn<F>(&self, f: F)
where F: Future<Output = ()> + Send + 'static,

Trait Implementations§

source§

impl Clone for SpannerClient

source§

fn clone(&self) -> SpannerClient

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.