pub struct Options {
pub parallel: Option<bool>,
pub prefetch_size: Option<u64>,
pub prefetch: Option<bool>,
pub transaction_timeout_millis: Option<u64>,
pub schema_lock_acquire_timeout_millis: Option<u64>,
pub read_any_replica: Option<bool>,
}
Fields§
§parallel: Option<bool>
optional bool infer = 1; optional bool trace_inference = 2; optional bool explain = 3;
prefetch_size: Option<u64>
§prefetch: Option<bool>
§transaction_timeout_millis: Option<u64>
optional int32 session_idle_timeout_millis = 7;
schema_lock_acquire_timeout_millis: Option<u64>
§read_any_replica: Option<bool>
Implementations§
Source§impl Options
impl Options
Sourcepub fn parallel(&self) -> bool
pub fn parallel(&self) -> bool
Returns the value of parallel
, or the default value if parallel
is unset.
Sourcepub fn prefetch_size(&self) -> u64
pub fn prefetch_size(&self) -> u64
Returns the value of prefetch_size
, or the default value if prefetch_size
is unset.
Sourcepub fn prefetch(&self) -> bool
pub fn prefetch(&self) -> bool
Returns the value of prefetch
, or the default value if prefetch
is unset.
Sourcepub fn transaction_timeout_millis(&self) -> u64
pub fn transaction_timeout_millis(&self) -> u64
Returns the value of transaction_timeout_millis
, or the default value if transaction_timeout_millis
is unset.
Sourcepub fn schema_lock_acquire_timeout_millis(&self) -> u64
pub fn schema_lock_acquire_timeout_millis(&self) -> u64
Returns the value of schema_lock_acquire_timeout_millis
, or the default value if schema_lock_acquire_timeout_millis
is unset.
Sourcepub fn read_any_replica(&self) -> bool
pub fn read_any_replica(&self) -> bool
Returns the value of read_any_replica
, or the default value if read_any_replica
is unset.
Trait Implementations§
Source§impl Message for Options
impl Message for Options
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl Copy for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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