pub struct AttrPxiSlotpath { /* private fields */ }
Expand description
VI_ATTR_PXI_SLOTPATH specifies the slot path of this device. The purpose of a PXI slot path is to describe the PCI bus hierarchy in a manner independent of the PCI bus number. PXI slot paths are a sequence of values representing the PCI device number and function number of a PCI module and each parent PCI bridge that routes the module to the host PCI bridge (bus 0). Each value is represented as “ dev[.func] “, where the function number is listed only if it is non-zero. When a PXI slot path includes multiple values, the values are comma-separated. The string format of the attribute value looks like this: device1[.function1][,device2[.function2]][,…] An example string is “ 5.1,12,8 “. In this case, there is a PCI-to-PCI bridge on device 8 on the root bus. On its secondary bus, there is another PCI-to-PCI bridge on device 12. On its secondary bus, there is an instrument on device 5, function 1. The example string value describes this instrument’s slot path.
Implementations
sourceimpl AttrPxiSlotpath
impl AttrPxiSlotpath
pub fn into_inner(self) -> ViString
sourceimpl AttrPxiSlotpath
impl AttrPxiSlotpath
pub fn new(value: ViString) -> Self
pub unsafe fn new_unchecked(value: ViString) -> Self
pub fn new_checked(value: ViString) -> Option<Self>
Trait Implementations
sourceimpl AttrInner for AttrPxiSlotpath
impl AttrInner for AttrPxiSlotpath
sourceimpl Clone for AttrPxiSlotpath
impl Clone for AttrPxiSlotpath
sourcefn clone(&self) -> AttrPxiSlotpath
fn clone(&self) -> AttrPxiSlotpath
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 AttrPxiSlotpath
impl Debug for AttrPxiSlotpath
sourceimpl From<AttrPxiSlotpath> for Attribute
impl From<AttrPxiSlotpath> for Attribute
sourcefn from(s: AttrPxiSlotpath) -> Self
fn from(s: AttrPxiSlotpath) -> Self
Converts to this type from the input type.
sourceimpl Hash for AttrPxiSlotpath
impl Hash for AttrPxiSlotpath
sourceimpl Ord for AttrPxiSlotpath
impl Ord for AttrPxiSlotpath
sourceimpl PartialEq<AttrPxiSlotpath> for AttrPxiSlotpath
impl PartialEq<AttrPxiSlotpath> for AttrPxiSlotpath
sourcefn eq(&self, other: &AttrPxiSlotpath) -> bool
fn eq(&self, other: &AttrPxiSlotpath) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttrPxiSlotpath) -> bool
fn ne(&self, other: &AttrPxiSlotpath) -> bool
This method tests for !=
.
sourceimpl PartialOrd<AttrPxiSlotpath> for AttrPxiSlotpath
impl PartialOrd<AttrPxiSlotpath> for AttrPxiSlotpath
sourcefn partial_cmp(&self, other: &AttrPxiSlotpath) -> Option<Ordering>
fn partial_cmp(&self, other: &AttrPxiSlotpath) -> 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 AttrPxiSlotpath
impl StructuralEq for AttrPxiSlotpath
impl StructuralPartialEq for AttrPxiSlotpath
Auto Trait Implementations
impl RefUnwindSafe for AttrPxiSlotpath
impl !Send for AttrPxiSlotpath
impl !Sync for AttrPxiSlotpath
impl Unpin for AttrPxiSlotpath
impl UnwindSafe for AttrPxiSlotpath
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