pub struct ChipsetBuilder<'a> { /* private fields */ }
Expand description
A builder for Chipset
Implementations§
Source§impl<'a> ChipsetBuilder<'a>
impl<'a> ChipsetBuilder<'a>
Sourcepub fn arc_mutex_device<'b, T: VmmChipsetDevice>(
&'b mut self,
dev_name: impl Into<Arc<str>>,
) -> ArcMutexChipsetDeviceBuilder<'b, 'a, T>
pub fn arc_mutex_device<'b, T: VmmChipsetDevice>( &'b mut self, dev_name: impl Into<Arc<str>>, ) -> ArcMutexChipsetDeviceBuilder<'b, 'a, T>
Add a new ChipsetDevice
to the
chipset. dev_name
must be unique!
Sourcepub fn build(
self,
) -> Result<(Arc<Chipset>, ChipsetDevices), FinalChipsetBuilderError>
pub fn build( self, ) -> Result<(Arc<Chipset>, ChipsetDevices), FinalChipsetBuilderError>
Wrap up device construction, returning the completed chipset and devices
Sourcepub fn add_external_line_target(
&mut self,
id: LineSetId,
source_range: RangeInclusive<u32>,
target_start: u32,
debug_label: &str,
target: Arc<dyn LineSetTarget>,
)
pub fn add_external_line_target( &mut self, id: LineSetId, source_range: RangeInclusive<u32>, target_start: u32, debug_label: &str, target: Arc<dyn LineSetTarget>, )
Add a new line set target from an external source.
Auto Trait Implementations§
impl<'a> Freeze for ChipsetBuilder<'a>
impl<'a> !RefUnwindSafe for ChipsetBuilder<'a>
impl<'a> Send for ChipsetBuilder<'a>
impl<'a> !Sync for ChipsetBuilder<'a>
impl<'a> Unpin for ChipsetBuilder<'a>
impl<'a> !UnwindSafe for ChipsetBuilder<'a>
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