[][src]Struct ethercat_sys::ec_master_state_t

#[repr(C)]pub struct ec_master_state_t {
    pub slaves_responding: c_uint,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: [u8; 3],
}

Master state.

This is used for the output parameter of ecrt_master_state().

\see ecrt_master_state().

Fields

slaves_responding: c_uint

< Sum of responding slaves on all Ethernet devices.

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: [u8; 3]

Implementations

impl ec_master_state_t[src]

pub fn al_states(&self) -> c_uint[src]

pub fn set_al_states(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    al_states: c_uint,
    link_up: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ec_master_state_t[src]

impl Copy for ec_master_state_t[src]

impl Default for ec_master_state_t[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.