pub struct BoardDetector { /* private fields */ }Implementations§
Source§impl BoardDetector
impl BoardDetector
pub fn new(verbose: bool) -> Self
Sourcepub fn detect_boards(&self) -> Result<Vec<CircuitPythonBoard>>
pub fn detect_boards(&self) -> Result<Vec<CircuitPythonBoard>>
Detect all available CircuitPython boards
Sourcepub fn is_circuitpython_board(&self, path: &Path) -> bool
pub fn is_circuitpython_board(&self, path: &Path) -> bool
Check if a path represents a CircuitPython board
Sourcepub fn select_board<'a>(
&self,
boards: &'a [CircuitPythonBoard],
) -> Result<&'a CircuitPythonBoard>
pub fn select_board<'a>( &self, boards: &'a [CircuitPythonBoard], ) -> Result<&'a CircuitPythonBoard>
Interactive board selection
Sourcepub fn list_boards(&self) -> Result<()>
pub fn list_boards(&self) -> Result<()>
List all detected boards
Auto Trait Implementations§
impl Freeze for BoardDetector
impl RefUnwindSafe for BoardDetector
impl Send for BoardDetector
impl Sync for BoardDetector
impl Unpin for BoardDetector
impl UnwindSafe for BoardDetector
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