pub struct UrapPrimary<'a, IO>{ /* private fields */ }Expand description
Primary client, used for interacting with a server via IO.
Implementations§
Source§impl<'a, IO> UrapPrimary<'a, IO>
impl<'a, IO> UrapPrimary<'a, IO>
Sourcepub fn new(io: &'a mut IO) -> Self
pub fn new(io: &'a mut IO) -> Self
Create a client with IO.
Sourcepub fn read_4u8(
&mut self,
start_register: u16,
data: &mut [[u8; 4]],
) -> Result<(), Error<IO::Error>>
pub fn read_4u8( &mut self, start_register: u16, data: &mut [[u8; 4]], ) -> Result<(), Error<IO::Error>>
Read n registers into an array of [[u8; 4]; n]
Sourcepub fn write_4u8(
&mut self,
start_register: u16,
data: &[[u8; 4]],
) -> Result<(), Error<IO::Error>>
pub fn write_4u8( &mut self, start_register: u16, data: &[[u8; 4]], ) -> Result<(), Error<IO::Error>>
Write n registers from an array of [[u8; 4]; n]
Sourcepub fn is_healthy(&mut self) -> bool
pub fn is_healthy(&mut self) -> bool
Check if the connection is healthy
Auto Trait Implementations§
impl<'a, IO> Freeze for UrapPrimary<'a, IO>
impl<'a, IO> RefUnwindSafe for UrapPrimary<'a, IO>where
IO: RefUnwindSafe,
impl<'a, IO> Send for UrapPrimary<'a, IO>where
IO: Send,
impl<'a, IO> Sync for UrapPrimary<'a, IO>where
IO: Sync,
impl<'a, IO> Unpin for UrapPrimary<'a, IO>
impl<'a, IO> !UnwindSafe for UrapPrimary<'a, IO>
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