pub struct GigeRegisterIo { /* private fields */ }Expand description
Blocking adapter turning an asynchronous GigeDevice into a RegisterIo
implementation.
The adapter uses a [tokio::runtime::Handle] to synchronously wait on GVCP
register transactions. All callers must ensure these methods are invoked
from outside of the runtime context to avoid nested block_on panics.
Implementations§
Source§impl GigeRegisterIo
impl GigeRegisterIo
Sourcepub fn new(handle: Handle, device: GigeDevice) -> Self
pub fn new(handle: Handle, device: GigeDevice) -> Self
Create a new adapter using the provided runtime handle and device.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GigeRegisterIo
impl RefUnwindSafe for GigeRegisterIo
impl Send for GigeRegisterIo
impl Sync for GigeRegisterIo
impl Unpin for GigeRegisterIo
impl UnwindSafe for GigeRegisterIo
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