pub struct ExecutionOptions { /* private fields */ }Expand description
Options available when executing a job on a QPU.
Use Default to get a reasonable set of defaults, or start with ExecutionOptionsBuilder
to build a custom set of options.
Implementations§
Source§impl ExecutionOptions
impl ExecutionOptions
Sourcepub fn builder() -> ExecutionOptionsBuilder
pub fn builder() -> ExecutionOptionsBuilder
Get an ExecutionOptionsBuilder that can be used to build a custom ExecutionOptions.
Sourcepub fn connection_strategy(&self) -> &ConnectionStrategy
pub fn connection_strategy(&self) -> &ConnectionStrategy
Get the ConnectionStrategy.
Sourcepub fn api_options(&self) -> Option<&InnerApiExecutionOptions>
pub fn api_options(&self) -> Option<&InnerApiExecutionOptions>
Get the ApiExecutionOptions.
Trait Implementations§
Source§impl Clone for ExecutionOptions
impl Clone for ExecutionOptions
Source§fn clone(&self) -> ExecutionOptions
fn clone(&self) -> ExecutionOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutionOptions
impl Debug for ExecutionOptions
Source§impl Default for ExecutionOptions
impl Default for ExecutionOptions
Source§impl<'a> ExecutionTarget<'a> for ExecutionOptions
Methods that help select and configure a controller service client given a set of
ExecutionOptions and QPU ID.
impl<'a> ExecutionTarget<'a> for ExecutionOptions
Methods that help select and configure a controller service client given a set of
ExecutionOptions and QPU ID.
Source§fn connection_strategy(&'a self) -> &'a ConnectionStrategy
fn connection_strategy(&'a self) -> &'a ConnectionStrategy
ConnectionStrategy to use to determine the connection target.Source§fn get_job_target(
&'a self,
quantum_processor_id: Option<&str>,
) -> Option<Target>
fn get_job_target( &'a self, quantum_processor_id: Option<&str>, ) -> Option<Target>
execute_controller_job_request::Target for the given quantum processor ID.Source§fn get_results_target(
&'a self,
quantum_processor_id: Option<&str>,
) -> Option<Target>
fn get_results_target( &'a self, quantum_processor_id: Option<&str>, ) -> Option<Target>
get_controller_job_results_request::Target for the given quantum processor ID.Source§fn get_cancel_target(
&'a self,
quantum_processor_id: Option<&str>,
) -> Option<Target>
fn get_cancel_target( &'a self, quantum_processor_id: Option<&str>, ) -> Option<Target>
cancel_controller_jobs_request::Target for the given quantum processor ID.Source§fn get_controller_client<'life0, 'life1, 'async_trait>(
&'a self,
client: &'life0 Qcs,
quantum_processor_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ControllerClient<GrpcConnection>, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_controller_client<'life0, 'life1, 'async_trait>(
&'a self,
client: &'life0 Qcs,
quantum_processor_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ControllerClient<GrpcConnection>, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_qpu_grpc_connection<'life0, 'life1, 'async_trait>(
&'a self,
client: &'life0 Qcs,
quantum_processor_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GrpcConnection, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_qpu_grpc_connection<'life0, 'life1, 'async_trait>(
&'a self,
client: &'life0 Qcs,
quantum_processor_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GrpcConnection, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn grpc_address_to_channel(
&self,
address: &str,
client: &Qcs,
) -> Result<GrpcConnection, QpuApiError>
fn grpc_address_to_channel( &self, address: &str, client: &Qcs, ) -> Result<GrpcConnection, QpuApiError>
Source§fn get_gateway_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
quantum_processor_id: &'life1 str,
client: &'life2 Qcs,
) -> Pin<Box<dyn Future<Output = Result<String, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_gateway_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
quantum_processor_id: &'life1 str,
client: &'life2 Qcs,
) -> Pin<Box<dyn Future<Output = Result<String, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn get_default_endpoint_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
quantum_processor_id: &'life1 str,
client: &'life2 Qcs,
) -> Pin<Box<dyn Future<Output = Result<String, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_default_endpoint_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
quantum_processor_id: &'life1 str,
client: &'life2 Qcs,
) -> Pin<Box<dyn Future<Output = Result<String, QpuApiError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl PartialEq for ExecutionOptions
impl PartialEq for ExecutionOptions
impl Eq for ExecutionOptions
impl StructuralPartialEq for ExecutionOptions
Auto Trait Implementations§
impl Freeze for ExecutionOptions
impl RefUnwindSafe for ExecutionOptions
impl Send for ExecutionOptions
impl Sync for ExecutionOptions
impl Unpin for ExecutionOptions
impl UnsafeUnpin for ExecutionOptions
impl UnwindSafe for ExecutionOptions
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> 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<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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§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::RequestSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.