pub(crate) struct LabJackGuard {
pub(crate) handle: i32,
}Expand description
RAII guard that stops streaming and closes the LabJack handle on drop.
The sampling loop exits through several error and shutdown paths, so cleanup is tied to ownership of the handle instead of each branch remembering to close the device.
Fields§
§handle: i32LJM device handle to stop and close.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LabJackGuard
impl RefUnwindSafe for LabJackGuard
impl Send for LabJackGuard
impl Sync for LabJackGuard
impl Unpin for LabJackGuard
impl UnsafeUnpin for LabJackGuard
impl UnwindSafe for LabJackGuard
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