#[repr(i32)]pub enum TransferMode {
Unspecified = 0,
Async = 1,
Sync = 2,
Adaptive = 3,
}Expand description
The requested result transfer mode.
By default, we recommend using ADAPTIVE for most workloads.
ADAPTIVE and ASYNC are only supported for the ARROW_IPC and
JSON_ARRAY output formats. All other output formats use SYNC mode.
Variants§
Unspecified = 0
TRANSFER_MODE_UNSPECIFIED defaults to ADAPTIVE
Async = 1
Only returns the header including the schema and query id. Results need
to be fetched via GetQueryResult. Only supported for JSON_ARRAY and
ARROW_IPC output format.
Sync = 2
All results will be returned with the ExecuteQuery call
Using this mode is discouraged, as there is a 100s timeout.
Adaptive = 3
Returns up to one result chunk synchronously. Subsequent result chunks
may be retrieved via GetQueryResult. If the client does not retrieve
the chunk in time, the server will close the connection. This does not
imply that the query failed. It is the client’s obligation to query the
status or refetch remaining rows from the first chunk in case of
timeouts.
Implementations§
Source§impl TransferMode
impl TransferMode
Source§impl TransferMode
impl TransferMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<TransferMode>
pub fn from_str_name(value: &str) -> Option<TransferMode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for TransferMode
impl Clone for TransferMode
Source§fn clone(&self) -> TransferMode
fn clone(&self) -> TransferMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransferMode
impl Debug for TransferMode
Source§impl Default for TransferMode
impl Default for TransferMode
Source§fn default() -> TransferMode
fn default() -> TransferMode
Source§impl Hash for TransferMode
impl Hash for TransferMode
Source§impl Ord for TransferMode
impl Ord for TransferMode
Source§fn cmp(&self, other: &TransferMode) -> Ordering
fn cmp(&self, other: &TransferMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TransferMode
impl PartialEq for TransferMode
Source§fn eq(&self, other: &TransferMode) -> bool
fn eq(&self, other: &TransferMode) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TransferMode
impl PartialOrd for TransferMode
Source§impl TryFrom<i32> for TransferMode
impl TryFrom<i32> for TransferMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<TransferMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<TransferMode, UnknownEnumValue>
impl Copy for TransferMode
impl Eq for TransferMode
impl StructuralPartialEq for TransferMode
Auto Trait Implementations§
impl Freeze for TransferMode
impl RefUnwindSafe for TransferMode
impl Send for TransferMode
impl Sync for TransferMode
impl Unpin for TransferMode
impl UnsafeUnpin for TransferMode
impl UnwindSafe for TransferMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
T in a tonic::Request