pub struct AssignedBusRange(/* private fields */);Expand description
Segment-local bus range assigned to a PCIe downstream port.
Stores a packed (secondary_bus, subordinate_bus) as an atomic u16,
updated when the PCIe port’s bus numbers change. The segment number
is not included here — it is a static property of the root complex
and is held separately by the consumer (e.g., ITS wrappers).
Clone is cheap (just an Arc bump).
Implementations§
Source§impl AssignedBusRange
impl AssignedBusRange
Sourcepub fn set_bus_range(&self, secondary: u8, subordinate: u8)
pub fn set_bus_range(&self, secondary: u8, subordinate: u8)
Updates the bus range for the downstream port.
Sourcepub fn contains_bus(&self, bus: u8) -> bool
pub fn contains_bus(&self, bus: u8) -> bool
Returns whether bus falls within the current bus range
(inclusive on both ends).
Trait Implementations§
Source§impl Clone for AssignedBusRange
impl Clone for AssignedBusRange
Source§fn clone(&self) -> AssignedBusRange
fn clone(&self) -> AssignedBusRange
Returns a duplicate 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 AssignedBusRange
impl Debug for AssignedBusRange
Auto Trait Implementations§
impl Freeze for AssignedBusRange
impl RefUnwindSafe for AssignedBusRange
impl Send for AssignedBusRange
impl Sync for AssignedBusRange
impl Unpin for AssignedBusRange
impl UnsafeUnpin for AssignedBusRange
impl UnwindSafe for AssignedBusRange
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