pub struct SpannerDriver { /* private fields */ }Expand description
The Spanner ADBC driver — the entry point for creating SpannerDatabase instances.
The driver owns the shared Tokio runtime used to drive the asynchronous Spanner client, so a single driver instance should be reused for the lifetime of the application.
Implementations§
Trait Implementations§
Source§impl Default for SpannerDriver
impl Default for SpannerDriver
Source§fn default() -> Self
fn default() -> Self
Create a driver with a fresh runtime.
Required by the C FFI driver exporter, which cannot surface a fallible constructor. Panics
only if the Tokio runtime cannot be created (catastrophic OS resource exhaustion); prefer
SpannerDriver::try_new in Rust code.
Source§impl Driver for SpannerDriver
impl Driver for SpannerDriver
type DatabaseType = SpannerDatabase
Source§fn new_database(&mut self) -> Result<Self::DatabaseType>
fn new_database(&mut self) -> Result<Self::DatabaseType>
Allocate and initialize a new database without pre-init options.
Source§fn new_database_with_opts(
&mut self,
opts: impl IntoIterator<Item = (OptionDatabase, OptionValue)>,
) -> Result<Self::DatabaseType>
fn new_database_with_opts( &mut self, opts: impl IntoIterator<Item = (OptionDatabase, OptionValue)>, ) -> Result<Self::DatabaseType>
Allocate and initialize a new database with pre-init options.
Auto Trait Implementations§
impl Freeze for SpannerDriver
impl RefUnwindSafe for SpannerDriver
impl Send for SpannerDriver
impl Sync for SpannerDriver
impl Unpin for SpannerDriver
impl UnsafeUnpin for SpannerDriver
impl UnwindSafe for SpannerDriver
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<DriverType> FFIDriver for DriverType
impl<DriverType> FFIDriver for DriverType
fn ffi_driver() -> FFI_AdbcDriver
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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