Struct scylla::transport::execution_profile::ExecutionProfile
source · pub struct ExecutionProfile(_);
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.
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 more