pub struct Shared<'a, P> {
pub value: &'a RefCell<P>,
}
Fields§
§value: &'a RefCell<P>
Implementations§
Trait Implementations§
Source§fn write_byte_read_bytes(
&mut self,
wbuf: &[u8; 1],
rbuf: &mut [u8],
) -> Result<(), Self::Error>
fn write_byte_read_bytes( &mut self, wbuf: &[u8; 1], rbuf: &mut [u8], ) -> Result<(), Self::Error>
type Error = <P as BusOperation>::Error
fn read_from_register( &mut self, reg: u8, buf: &mut [u8], ) -> Result<(), Self::Error>
fn write_to_register(&mut self, reg: u8, buf: &[u8]) -> Result<(), Self::Error>
Source§fn delay_ms(&mut self, ms: u32)
fn delay_ms(&mut self, ms: u32)
Pauses execution for at minimum
ms
milliseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Source§fn write(&mut self, address: u8, write: &[u8]) -> Result<(), Self::Error>
fn write(&mut self, address: u8, write: &[u8]) -> Result<(), Self::Error>
Writes bytes to slave with address
address
. Read moreAuto Trait Implementations§
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