pub struct Client<C> { /* private fields */ }
Expand description
The main object of this crate.
Implementations§
Source§impl<C> Client<C>
impl<C> Client<C>
Sourcepub async fn new(auth: Authenticator<C>) -> Result<Self, Error>
pub async fn new(auth: Authenticator<C>) -> Result<Self, Error>
Create a new client using auth
as a token generator.
Sourcepub fn read_session_builder(
&mut self,
table: Table,
) -> ReadSessionBuilder<'_, C>
pub fn read_session_builder( &mut self, table: Table, ) -> ReadSessionBuilder<'_, C>
Create a new ReadSessionBuilder
.
Auto Trait Implementations§
impl<C> Freeze for Client<C>
impl<C> !RefUnwindSafe for Client<C>
impl<C> Send for Client<C>
impl<C> Sync for Client<C>
impl<C> Unpin for Client<C>
impl<C> !UnwindSafe for Client<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request