[][src]Struct msr::IoGate

pub struct IoGate {
    pub id: String,
    pub mapping: Option<ValueMapping>,
    pub cropping: Option<Cropping>,
    pub calib: Option<Calibration>,
}

I/O (sensor or actuator)

Example

use msr::*;

let tcr001 = IoGate::new("tcr001".into());

// or create it from a str
let tcr002 : IoGate = "tcr002".into();

Fields

id: String

The unique ID of the gate

mapping: Option<ValueMapping>

Value mapping

cropping: Option<Cropping>

Value cropping

calib: Option<Calibration>

Value calibration

Methods

impl IoGate[src]

pub fn new(id: String) -> Self[src]

Trait Implementations

impl PartialEq<IoGate> for IoGate[src]

impl Clone for IoGate[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for IoGate[src]

impl Debug for IoGate[src]

Auto Trait Implementations

impl Send for IoGate

impl Sync for IoGate

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]