Struct hwlocality::object::attributes::BridgeAttributes
source · pub struct BridgeAttributes(/* private fields */);
Expand description
Bridge
-specific attributes
Implementations§
source§impl BridgeAttributes
impl BridgeAttributes
sourcepub fn upstream_type(&self) -> BridgeType
pub fn upstream_type(&self) -> BridgeType
Upstream type
sourcepub fn upstream_attributes(&self) -> Option<UpstreamAttributes<'_>>
pub fn upstream_attributes(&self) -> Option<UpstreamAttributes<'_>>
Upstream attributes
sourcepub fn downstream_type(&self) -> BridgeType
pub fn downstream_type(&self) -> BridgeType
Downstream type
sourcepub fn downstream_attributes(&self) -> Option<DownstreamAttributes<'_>>
pub fn downstream_attributes(&self) -> Option<DownstreamAttributes<'_>>
Downstream attributes
Trait Implementations§
source§impl Arbitrary for BridgeAttributes
Available on crate feature proptest
only.
impl Arbitrary for BridgeAttributes
Available on crate feature
proptest
only.§type Parameters = <(PCIDeviceAttributes, DownstreamPCIAttributes, u32) as Arbitrary>::Parameters
type Parameters = <(PCIDeviceAttributes, DownstreamPCIAttributes, u32) as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<([TupleUnion<((u32, Arc<Select<u32>>), (u32, Arc<RangeInclusive<u32>>))>; 2], <(PCIDeviceAttributes, DownstreamPCIAttributes, u32) as Arbitrary>::Strategy), fn(_: ([u32; 2], (PCIDeviceAttributes, DownstreamPCIAttributes, u32))) -> BridgeAttributes>
type Strategy = Map<([TupleUnion<((u32, Arc<Select<u32>>), (u32, Arc<RangeInclusive<u32>>))>; 2], <(PCIDeviceAttributes, DownstreamPCIAttributes, u32) as Arbitrary>::Strategy), fn(_: ([u32; 2], (PCIDeviceAttributes, DownstreamPCIAttributes, u32))) -> BridgeAttributes>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
source§impl Clone for BridgeAttributes
impl Clone for BridgeAttributes
source§fn clone(&self) -> BridgeAttributes
fn clone(&self) -> BridgeAttributes
Returns a copy 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 BridgeAttributes
impl Debug for BridgeAttributes
source§impl PartialEq for BridgeAttributes
impl PartialEq for BridgeAttributes
impl Copy for BridgeAttributes
Auto Trait Implementations§
impl Freeze for BridgeAttributes
impl RefUnwindSafe for BridgeAttributes
impl Send for BridgeAttributes
impl Sync for BridgeAttributes
impl Unpin for BridgeAttributes
impl UnwindSafe for BridgeAttributes
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