pub struct Install<H: Harness + ?Sized>(/* private fields */);Implementations§
Source§impl<H: Harness + ?Sized> Install<H>
impl<H: Harness + ?Sized> Install<H>
Sourcepub fn new<C: BorrowMut<H>>(board: C) -> Machine<H, C> ⓘ
pub fn new<C: BorrowMut<H>>(board: C) -> Machine<H, C> ⓘ
This associated function generates a new Machine using the provided Harness reference.
It can accept any value that can be dereferenced to a mut Harness, whether dynamic or
generic, making it fairly easy to supply a &mut H, a Box<H> or Box<dyn Harness>.
This associated function takes a standard single Harness access point (which could
be an embedded value) and generates a new Machine that uses a shared copy of that
access point, using Rc<RefCell
Sourcepub fn new_synced<C: BorrowMut<H>>(
board: C,
) -> Machine<Arc<Mutex<(C, PhantomData<H>)>>, Arc<Mutex<(C, PhantomData<H>)>>> ⓘ
pub fn new_synced<C: BorrowMut<H>>( board: C, ) -> Machine<Arc<Mutex<(C, PhantomData<H>)>>, Arc<Mutex<(C, PhantomData<H>)>>> ⓘ
This associated function takes a standard single Harness access point (which could
be an embedded value) and generates a new Machine that uses a shared copy of that
access point, using Arc<Mutex