pub enum BusType {
Unknown,
Pci,
Pcie,
Fpci,
Agp,
}Expand description
Returned by crate::Device::bus_type().
Variants
Unknown
Unknown bus type.
Pci
PCI (Peripheral Component Interconnect) bus type.
Pcie
PCIE (Peripheral Component Interconnect Express) bus type.
This is the most common bus type.
Fpci
FPCI (Fast Peripheral Component Interconnect) bus type.
Agp
AGP (Accelerated Graphics Port) bus type.
This is old and was dropped in favor of PCIE.
Implementations
sourceimpl BusType
impl BusType
sourcepub fn as_c(&self) -> nvmlBusType_t
pub fn as_c(&self) -> nvmlBusType_t
Returns the C constant equivalent for the given Rust enum variant.
Trait Implementations
impl Eq for BusType
impl StructuralEq for BusType
impl StructuralPartialEq for BusType
Auto Trait Implementations
impl RefUnwindSafe for BusType
impl Send for BusType
impl Sync for BusType
impl Unpin for BusType
impl UnwindSafe for BusType
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more