We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de7d8a5 + 9df44f6 commit 64b4afcCopy full SHA for 64b4afc
scylla/src/transport/execution_profile.rs
@@ -513,6 +513,11 @@ impl ExecutionProfileHandle {
513
self.0 .0.load().to_builder()
514
}
515
516
+ /// Returns execution profile pointed by this handle.
517
+ pub fn to_profile(&self) -> ExecutionProfile {
518
+ ExecutionProfile(self.access())
519
+ }
520
+
521
/// Makes the handle point to a new execution profile.
522
/// All entities (queries/Session) holding this handle will reflect the change.
523
pub fn map_to_another_profile(&mut self, profile: ExecutionProfile) {
0 commit comments