Struct scylla::transport::execution_profile::ExecutionProfile
source · pub struct ExecutionProfile(/* private fields */);
Expand description
A profile that groups configurable options regarding query execution.
Execution profile is immutable as such, but the driver implements double indirection of form: query/Session -> ExecutionProfileHandle -> ExecutionProfile which enables on-fly changing the actual profile associated with all entities (query/Session) by the same handle.
Implementations§
source§impl ExecutionProfile
impl ExecutionProfile
sourcepub fn builder() -> ExecutionProfileBuilder
pub fn builder() -> ExecutionProfileBuilder
Creates a blank builder that can be used to construct new ExecutionProfile.
sourcepub fn to_builder(&self) -> ExecutionProfileBuilder
pub fn to_builder(&self) -> ExecutionProfileBuilder
Creates a builder having all options set to the same as set in this ExecutionProfile.
sourcepub fn into_handle(self) -> ExecutionProfileHandle
pub fn into_handle(self) -> ExecutionProfileHandle
Returns a new handle to this ExecutionProfile.
sourcepub fn into_handle_with_label(self, label: String) -> ExecutionProfileHandle
pub fn into_handle_with_label(self, label: String) -> ExecutionProfileHandle
Returns a new handle to this ExecutionProfile, tagging the handle with provided label. The tag, as its name suggests, is only useful for debugging purposes, while being confused about which statement/session is assigned which handle. Identifying handles with tags could then help.
sourcepub fn get_request_timeout(&self) -> Option<Duration>
pub fn get_request_timeout(&self) -> Option<Duration>
Gets client timeout associated with this profile.
sourcepub fn get_consistency(&self) -> Consistency
pub fn get_consistency(&self) -> Consistency
Gets consistency associated with this profile.
sourcepub fn get_serial_consistency(&self) -> Option<SerialConsistency>
pub fn get_serial_consistency(&self) -> Option<SerialConsistency>
Gets serial consistency (if set) associated with this profile.
sourcepub fn get_load_balancing_policy(&self) -> &Arc<dyn LoadBalancingPolicy>
pub fn get_load_balancing_policy(&self) -> &Arc<dyn LoadBalancingPolicy>
Gets load balancing policy associated with this profile.
sourcepub fn get_retry_policy(&self) -> &Arc<dyn RetryPolicy>
pub fn get_retry_policy(&self) -> &Arc<dyn RetryPolicy>
Gets retry policy associated with this profile.
sourcepub fn get_speculative_execution_policy(
&self,
) -> Option<&Arc<dyn SpeculativeExecutionPolicy>>
pub fn get_speculative_execution_policy( &self, ) -> Option<&Arc<dyn SpeculativeExecutionPolicy>>
Gets speculative execution policy associated with this profile.
Trait Implementations§
source§impl Clone for ExecutionProfile
impl Clone for ExecutionProfile
source§fn clone(&self) -> ExecutionProfile
fn clone(&self) -> ExecutionProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ExecutionProfile
impl !RefUnwindSafe for ExecutionProfile
impl Send for ExecutionProfile
impl Sync for ExecutionProfile
impl Unpin for ExecutionProfile
impl !UnwindSafe for ExecutionProfile
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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