pub struct TuneRequest {Show 27 fields
pub tagname: String,
pub template: String,
pub process_type: ProcessType,
pub controller_type: ControllerType,
pub relay_amp: f32,
pub cycles_skip: Option<u32>,
pub cycles_count: Option<u32>,
pub noise_protection_secs: Option<u32>,
pub driver: DriverKind,
pub bridge_host: Option<String>,
pub server: Option<String>,
pub sim_gain: f32,
pub sim_tau: f32,
pub sim_dead_time: f32,
pub sim_noise: f32,
pub sim_seed: u64,
pub sim_initial_pv: f32,
pub sim_initial_mv: f32,
pub pv_range_high: Option<f32>,
pub pv_range_low: Option<f32>,
pub mv_range_high: Option<f32>,
pub mv_range_low: Option<f32>,
pub direction: Option<ControllerDirection>,
pub tag_overrides: Option<TagOverrides>,
pub notes: Option<String>,
pub yes: bool,
pub write_pid: Option<ResponseLevel>,
}Expand description
Transport-neutral inputs for a tune run.
CLI and HTTP adapters construct this type from their own request models. Runtime timing
values are resolved from crate::config::BhtuneConfig during preparation.
Fields§
§tagname: String§template: String§process_type: ProcessType§controller_type: ControllerType§relay_amp: f32§cycles_skip: Option<u32>§cycles_count: Option<u32>§noise_protection_secs: Option<u32>§driver: DriverKind§bridge_host: Option<String>§server: Option<String>§sim_gain: f32§sim_tau: f32§sim_dead_time: f32§sim_noise: f32§sim_seed: u64§sim_initial_pv: f32§sim_initial_mv: f32§pv_range_high: Option<f32>§pv_range_low: Option<f32>§mv_range_high: Option<f32>§mv_range_low: Option<f32>§direction: Option<ControllerDirection>§tag_overrides: Option<TagOverrides>§notes: Option<String>§yes: bool§write_pid: Option<ResponseLevel>Trait Implementations§
Source§impl Clone for TuneRequest
impl Clone for TuneRequest
Source§fn clone(&self) -> TuneRequest
fn clone(&self) -> TuneRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TuneRequest
impl Debug for TuneRequest
Source§impl PartialEq for TuneRequest
impl PartialEq for TuneRequest
impl StructuralPartialEq for TuneRequest
Source§impl TryFrom<TuneRequest> for ValidatedTuneRequest
impl TryFrom<TuneRequest> for ValidatedTuneRequest
Source§type Error = TuneRequestValidationError
type Error = TuneRequestValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TuneRequest
impl RefUnwindSafe for TuneRequest
impl Send for TuneRequest
impl Sync for TuneRequest
impl Unpin for TuneRequest
impl UnsafeUnpin for TuneRequest
impl UnwindSafe for TuneRequest
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].