pub enum DriverKindArg {
Opcda,
Simulator,
}Expand description
Which bhtune_driver::Driver implementation a tune run should use.
Variants§
Opcda
A real OPC DA server, reached through an opcda-bridge gateway.
Simulator
The in-process FOPDT simulator — no external dependency at all.
Trait Implementations§
Source§impl Clone for DriverKindArg
impl Clone for DriverKindArg
Source§fn clone(&self) -> DriverKindArg
fn clone(&self) -> DriverKindArg
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DriverKindArg
Source§impl Debug for DriverKindArg
impl Debug for DriverKindArg
impl Eq for DriverKindArg
Source§impl PartialEq for DriverKindArg
impl PartialEq for DriverKindArg
Source§fn eq(&self, other: &DriverKindArg) -> bool
fn eq(&self, other: &DriverKindArg) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DriverKindArg
Source§impl TryFrom<TuneDriver> for DriverKindArg
The reverse of DriverKindArg -> TuneDriver conversions elsewhere in this crate, for
bhtune-server’s POST /api/runs, whose request body accepts
bhtune_db::models::TuneDriver directly (already Deserialize/ToSchema, and the one
enum every other run-history route already uses on the wire – see routes/history.rs in
bhtune-server) rather than this CLI-only wrapper.
impl TryFrom<TuneDriver> for DriverKindArg
The reverse of DriverKindArg -> TuneDriver conversions elsewhere in this crate, for
bhtune-server’s POST /api/runs, whose request body accepts
bhtune_db::models::TuneDriver directly (already Deserialize/ToSchema, and the one
enum every other run-history route already uses on the wire – see routes/history.rs in
bhtune-server) rather than this CLI-only wrapper.
TryFrom, not From: bhtune_db::models::TuneDriver::Replay has no DriverKindArg
counterpart at all yet (driver-replay in AGENTS.md is still unimplemented, so there is
no crate::driver::build case that could ever construct one), so a request naming it
must be rejected explicitly rather than silently mapped to something else.
Source§type Error = ReplayDriverUnsupported
type Error = ReplayDriverUnsupported
Source§impl ValueEnum for DriverKindArg
impl ValueEnum for DriverKindArg
Auto Trait Implementations§
impl Freeze for DriverKindArg
impl RefUnwindSafe for DriverKindArg
impl Send for DriverKindArg
impl Sync for DriverKindArg
impl Unpin for DriverKindArg
impl UnsafeUnpin for DriverKindArg
impl UnwindSafe for DriverKindArg
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].