Skip to main content

BigTableDbSettings

Struct BigTableDbSettings 

Source
pub struct BigTableDbSettings {
Show 17 fields pub table_name: String, pub app_profile_id: String, pub router_family: String, pub message_family: String, pub message_topic_family: String, pub database_pool_max_size: Option<u32>, pub grpc_channel_count: Option<u32>, pub database_pool_create_timeout: Option<Duration>, pub database_pool_wait_timeout: Option<Duration>, pub grpc_connect_timeout: Duration, pub grpc_point_attempt_timeout: Duration, pub grpc_scan_attempt_timeout: Duration, pub grpc_point_total_timeout: Duration, pub grpc_scan_total_timeout: Duration, pub route_to_leader: bool, pub retry_count: usize, pub max_router_ttl: Option<Duration>,
}
Expand description

The settings for accessing the BigTable contents.

Fields§

§table_name: String

The Table name matches the GRPC template for table paths. e.g. projects/{projectid}/instances/{instanceid}/tables/{tablename} NOTE There is no leading / By default, this (may?) use the * variant which translates to projects/*/instances/*/tables/* which searches all data stored in bigtable.

§app_profile_id: String

Routing replication profile id. Should be used everywhere we set table_name when creating requests

§router_family: String§message_family: String§message_topic_family: String§database_pool_max_size: Option<u32>§grpc_channel_count: Option<u32>

Number of shared tonic channels used for Bigtable RPCs. Defaults to four. Size it from peak concurrent operations for this workload on one pod, rather than from the maximum logical operation-pool size. See DEFAULT_GRPC_CHANNEL_COUNT for the arithmetic and its caveats.

§database_pool_create_timeout: Option<Duration>

Max time (in seconds) to create a pooled client handle.

§database_pool_wait_timeout: Option<Duration>

Max time (in seconds) to wait for a logical operation slot.

§grpc_connect_timeout: Duration

Max time (in seconds) for DNS, TCP, and TLS connection establishment.

§grpc_point_attempt_timeout: Duration

Per-attempt deadline (in seconds) for point reads and writes.

§grpc_scan_attempt_timeout: Duration

Per-attempt deadline (in seconds) for message range scans.

§grpc_point_total_timeout: Duration

End-to-end retry budget (in seconds) for point reads and writes.

§grpc_scan_total_timeout: Duration

End-to-end retry budget (in seconds) for message range scans.

§route_to_leader: bool

Include route to leader header in metadata

§retry_count: usize

Number of retries after the initial gRPC data operation. Defaults to two. Health checks use this same configured value.

§max_router_ttl: Option<Duration>

Max lifetime (in seconds) for a router entry

Implementations§

Trait Implementations§

Source§

impl Clone for BigTableDbSettings

Source§

fn clone(&self) -> BigTableDbSettings

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for BigTableDbSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BigTableDbSettings

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl TryFrom<&str> for BigTableDbSettings

Source§

type Error = DbError

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

fn try_from(setting_string: &str) -> Result<Self, Self::Error>

Performs the conversion.

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
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,