Struct dpdu_rust::CopCtrlData
source · [−]#[repr(C)]pub struct CopCtrlData {
pub time: u32,
pub num_send_cycles: i32,
pub num_receive_cycles: i32,
pub temp_param_update: u32,
pub tx_flag: FlagData,
pub num_possible_expected_responses: u32,
pub expected_response_array: *mut ExpRespData,
}
Expand description
Com primitive control data
Fields
time: u32
Cycle time in milliseconds or delay time of the ComPrimitive
num_send_cycles: i32
Number of send cycles. -1 for infinite
num_receive_cycles: i32
Number of receives. -1 for infinite
temp_param_update: u32
Optional temporary setting for the ComPrimitive
tx_flag: FlagData
Transmit flag
num_possible_expected_responses: u32
Number of elements in CopCtrlData::expected_response_array
expected_response_array: *mut ExpRespData
Pointer to an array of expected responses
Trait Implementations
sourceimpl Clone for CopCtrlData
impl Clone for CopCtrlData
sourcefn clone(&self) -> CopCtrlData
fn clone(&self) -> CopCtrlData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CopCtrlData
impl Debug for CopCtrlData
sourceimpl Ord for CopCtrlData
impl Ord for CopCtrlData
sourceimpl PartialEq<CopCtrlData> for CopCtrlData
impl PartialEq<CopCtrlData> for CopCtrlData
sourcefn eq(&self, other: &CopCtrlData) -> bool
fn eq(&self, other: &CopCtrlData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CopCtrlData) -> bool
fn ne(&self, other: &CopCtrlData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CopCtrlData> for CopCtrlData
impl PartialOrd<CopCtrlData> for CopCtrlData
sourcefn partial_cmp(&self, other: &CopCtrlData) -> Option<Ordering>
fn partial_cmp(&self, other: &CopCtrlData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CopCtrlData
impl Eq for CopCtrlData
impl StructuralEq for CopCtrlData
impl StructuralPartialEq for CopCtrlData
Auto Trait Implementations
impl RefUnwindSafe for CopCtrlData
impl !Send for CopCtrlData
impl !Sync for CopCtrlData
impl Unpin for CopCtrlData
impl UnwindSafe for CopCtrlData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more