#[repr(C)]pub struct switchtec_evcntr_setup {
pub port_mask: c_uint,
pub type_mask: switchtec_evcntr_type_mask,
pub egress: c_int,
pub threshold: c_uint,
}Expand description
@brief Structure used to setup an event counter
Fields§
§port_mask: c_uint§type_mask: switchtec_evcntr_type_mask@brief Event counter types to count
egress: c_int§threshold: c_uint@brief Threshold to count to before generating an interrupt @see switchtec_evcntr_wait()
Trait Implementations§
Source§impl Clone for switchtec_evcntr_setup
impl Clone for switchtec_evcntr_setup
Source§fn clone(&self) -> switchtec_evcntr_setup
fn clone(&self) -> switchtec_evcntr_setup
Returns a duplicate of the value. Read more
1.0.0 · 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 switchtec_evcntr_setup
impl Debug for switchtec_evcntr_setup
impl Copy for switchtec_evcntr_setup
Auto Trait Implementations§
impl Freeze for switchtec_evcntr_setup
impl RefUnwindSafe for switchtec_evcntr_setup
impl Send for switchtec_evcntr_setup
impl Sync for switchtec_evcntr_setup
impl Unpin for switchtec_evcntr_setup
impl UnwindSafe for switchtec_evcntr_setup
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