pub struct KiCad { /* private fields */ }
Expand description
Represents a connection to KiCad and its top-level API calls.
Implementations§
Source§impl KiCad
impl KiCad
pub fn new(config: KiCadConnectionConfig) -> Result<KiCad, KiCadError>
pub fn get_version(&self) -> Result<KiCadVersion<'_>, KiCadError>
pub fn get_open_documents( &self, doc_type: DocumentType, ) -> Result<Vec<DocumentSpecifier>, KiCadError>
pub fn get_board( &self, doc: &DocumentSpecifier, ) -> Result<Board<'_>, KiCadError>
pub fn get_open_board(&self) -> Result<Board<'_>, KiCadError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KiCad
impl !RefUnwindSafe for KiCad
impl Send for KiCad
impl !Sync for KiCad
impl Unpin for KiCad
impl UnwindSafe for KiCad
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