Struct GetDataState

Source
pub struct GetDataState {
Show 43 fields pub len: u16, pub joint_actual_position: [f64; 6], pub drag_status: bool, pub actual_position: [f64; 6], pub din: [u8; 199], pub dout: [u8; 199], pub ain: [f64; 128], pub aout: [f64; 128], pub tio_din: [u8; 8], pub tio_dout: [u8; 8], pub tio_ain: [f64; 2], pub relay_io: [u8; 2], pub mb_slave_din: [u8; 128], pub mb_slave_dout: [u8; 128], pub mb_slave_ain: [f64; 64], pub mb_slave_aout: [f64; 64], pub pn_dev_din: [u8; 64], pub pn_dev_dout: [u8; 64], pub pn_dev_ain: [f64; 64], pub pn_dev_aout: [f64; 64], pub eip_adpt_din: [u8; 64], pub eip_adpt_dout: [u8; 64], pub eip_adpt_ain: [f64; 48], pub eip_adpt_aout: [f64; 48], pub task_state: u8, pub homed: [u8; 9], pub task_mode: u8, pub interp_state: u8, pub enabled: bool, pub paused: bool, pub rapidrate: f64, pub current_tool_id: u8, pub current_user_id: u8, pub protective_stop: u8, pub on_soft_limit: u8, pub emergency_stop: u8, pub drag_near_limit: [u8; 6], pub powered_on: u8, pub inpos: bool, pub executing_line: u8, pub curr_tcp_trans_vel: f64, pub error_code: String, pub error_msg: String,
}

Fields§

§len: u16§joint_actual_position: [f64; 6]§drag_status: bool§actual_position: [f64; 6]§din: [u8; 199]§dout: [u8; 199]§ain: [f64; 128]§aout: [f64; 128]§tio_din: [u8; 8]§tio_dout: [u8; 8]§tio_ain: [f64; 2]§relay_io: [u8; 2]§mb_slave_din: [u8; 128]§mb_slave_dout: [u8; 128]§mb_slave_ain: [f64; 64]§mb_slave_aout: [f64; 64]§pn_dev_din: [u8; 64]§pn_dev_dout: [u8; 64]§pn_dev_ain: [f64; 64]§pn_dev_aout: [f64; 64]§eip_adpt_din: [u8; 64]§eip_adpt_dout: [u8; 64]§eip_adpt_ain: [f64; 48]§eip_adpt_aout: [f64; 48]§task_state: u8§homed: [u8; 9]§task_mode: u8§interp_state: u8§enabled: bool§paused: bool§rapidrate: f64§current_tool_id: u8§current_user_id: u8§protective_stop: u8§on_soft_limit: u8§emergency_stop: u8§drag_near_limit: [u8; 6]§powered_on: u8§inpos: bool§executing_line: u8§curr_tcp_trans_vel: f64§error_code: String§error_msg: String

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for GetDataState

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GetDataState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<X> Pipe for X

Source§

fn pipe<Return, Function>(self, f: Function) -> Return
where Self: Sized, Function: FnOnce(Self) -> Return,

Apply f to self. Read more
Source§

fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return
where Function: FnOnce(&'a Self) -> Return,

Apply f to &self. Read more
Source§

fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return
where Function: FnOnce(&'a mut Self) -> Return,

Apply f to &mut self. Read more
Source§

fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
where Self: AsRef<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,

Apply f to &self where f takes a single parameter of type Param and Self implements trait AsRef<Param>. Read more
Source§

fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
where Self: AsMut<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait AsMut<Param>. Read more
Source§

fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
where Self: Deref<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Target = Param>. Read more
Source§

fn pipe_deref_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
where Self: DerefMut<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait [DerefMut<Target = Param>]. Read more
Source§

fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
where Self: Borrow<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,

Apply f to &self where f takes a single parameter of type Param and Self implements trait Borrow<Param>. Read more
Source§

fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
where Self: BorrowMut<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait BorrowMut<Param>. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,