pub struct VimbaLibrary {
pub vimba_lib: VimbaC,
/* private fields */
}Fields§
§vimba_lib: VimbaCImplementations§
Source§impl VimbaLibrary
impl VimbaLibrary
pub fn new() -> Result<Self, Error>
Sourcepub unsafe fn shutdown(&self)
pub unsafe fn shutdown(&self)
This is unsafe because really you should drop VimbaLibrary rather than this. If you are using this, it cannot be guaranteed that VmbShutdown will not be called again.
§Safety
The caller must ensure that VmbShutdown is not called again (for
example via dropping VimbaLibrary) after this call.
pub fn from_dynamic_lib_path<P: AsRef<Path>>( vimbac_path: P, ) -> Result<Self, Error>
pub fn n_cameras(&self) -> Result<usize>
pub fn camera_info(&self, n_count: usize) -> Result<Vec<CameraInfo>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VimbaLibrary
impl !RefUnwindSafe for VimbaLibrary
impl Send for VimbaLibrary
impl Sync for VimbaLibrary
impl Unpin for VimbaLibrary
impl UnsafeUnpin for VimbaLibrary
impl !UnwindSafe for VimbaLibrary
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