pub struct HostDeviceInventory { /* private fields */ }Expand description
Devices and ports reported by a backend enumeration.
Implementations§
Source§impl HostDeviceInventory
impl HostDeviceInventory
Sourcepub fn with_devices(self, devices: Vec<HostDeviceSpec>) -> Self
pub fn with_devices(self, devices: Vec<HostDeviceSpec>) -> Self
Replaces the enumerated devices.
Sourcepub fn with_ports(self, ports: Vec<HostPortSpec>) -> Self
pub fn with_ports(self, ports: Vec<HostPortSpec>) -> Self
Replaces the enumerated ports.
Sourcepub fn devices(&self) -> &[HostDeviceSpec]
pub fn devices(&self) -> &[HostDeviceSpec]
Returns the enumerated devices.
Sourcepub fn ports(&self) -> &[HostPortSpec]
pub fn ports(&self) -> &[HostPortSpec]
Returns the enumerated ports.
Sourcepub fn card_exprs(&self) -> Vec<Expr>
pub fn card_exprs(&self) -> Vec<Expr>
Builds browse card expressions for every device and port.
Trait Implementations§
Source§impl Clone for HostDeviceInventory
impl Clone for HostDeviceInventory
Source§fn clone(&self) -> HostDeviceInventory
fn clone(&self) -> HostDeviceInventory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostDeviceInventory
impl Debug for HostDeviceInventory
impl Eq for HostDeviceInventory
Source§impl PartialEq for HostDeviceInventory
impl PartialEq for HostDeviceInventory
Source§fn eq(&self, other: &HostDeviceInventory) -> bool
fn eq(&self, other: &HostDeviceInventory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostDeviceInventory
Auto Trait Implementations§
impl Freeze for HostDeviceInventory
impl RefUnwindSafe for HostDeviceInventory
impl Send for HostDeviceInventory
impl Sync for HostDeviceInventory
impl Unpin for HostDeviceInventory
impl UnsafeUnpin for HostDeviceInventory
impl UnwindSafe for HostDeviceInventory
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