pub struct AttrIoProt { /* private fields */ }
Expand description
VI_ATTR_IO_PROT specifies which protocol to use. In VXI, you can choose normal word serial or fast data channel (FDC). In GPIB, you can choose normal or high-speed (HS-488) transfers. In serial, TCPIP, or USB RAW, you can choose normal transfers or 488.2-defined strings. In USB INSTR, you can choose normal or vendor-specific transfers. In previous versions of VISA, VI_PROT_NORMAL was known as VI_NORMAL , VI_PROT_FDC was known as VI_FDC , VI_PROT_HS488 was known as VI_HS488 , and VI_PROT_4882_STRS was known as VI_ASRL488 .
Implementations
sourceimpl AttrIoProt
impl AttrIoProt
pub fn into_inner(self) -> ViUInt16
sourceimpl AttrIoProt
impl AttrIoProt
pub const VI_PROT_FDC: Self = Self{value: 2 as _,}
pub const VI_PROT_4882_STRS: Self = Self{value: 4 as _,}
pub const VI_PROT_NORMAL: Self = Self{value: 1 as _,}
pub const VI_PROT_USBTMC_VENDOR: Self = Self{value: 5 as _,}
pub const VI_PROT_HS488: Self = Self{value: 3 as _,}
pub unsafe fn new_unchecked(value: ViUInt16) -> Self
pub fn new_checked(value: ViUInt16) -> Option<Self>
Trait Implementations
sourceimpl AttrInner for AttrIoProt
impl AttrInner for AttrIoProt
sourceimpl Clone for AttrIoProt
impl Clone for AttrIoProt
sourcefn clone(&self) -> AttrIoProt
fn clone(&self) -> AttrIoProt
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 AttrIoProt
impl Debug for AttrIoProt
sourceimpl Default for AttrIoProt
impl Default for AttrIoProt
sourceimpl From<AttrIoProt> for Attribute
impl From<AttrIoProt> for Attribute
sourcefn from(s: AttrIoProt) -> Self
fn from(s: AttrIoProt) -> Self
Converts to this type from the input type.
sourceimpl Hash for AttrIoProt
impl Hash for AttrIoProt
sourceimpl Ord for AttrIoProt
impl Ord for AttrIoProt
sourceimpl PartialEq<AttrIoProt> for AttrIoProt
impl PartialEq<AttrIoProt> for AttrIoProt
sourcefn eq(&self, other: &AttrIoProt) -> bool
fn eq(&self, other: &AttrIoProt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttrIoProt) -> bool
fn ne(&self, other: &AttrIoProt) -> bool
This method tests for !=
.
sourceimpl PartialOrd<AttrIoProt> for AttrIoProt
impl PartialOrd<AttrIoProt> for AttrIoProt
sourcefn partial_cmp(&self, other: &AttrIoProt) -> Option<Ordering>
fn partial_cmp(&self, other: &AttrIoProt) -> 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 Eq for AttrIoProt
impl StructuralEq for AttrIoProt
impl StructuralPartialEq for AttrIoProt
Auto Trait Implementations
impl RefUnwindSafe for AttrIoProt
impl Send for AttrIoProt
impl Sync for AttrIoProt
impl Unpin for AttrIoProt
impl UnwindSafe for AttrIoProt
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