pub struct CommandBuilder { /* private fields */ }
Implementations§
source§impl CommandBuilder
impl CommandBuilder
Provides convenience functions for creating various common types of Command implementation.
pub fn new(addr: TwiAddr) -> Self
pub fn address(self, addr: TwiAddr) -> Self
pub fn get_address(&self) -> TwiAddr
pub fn retry(&mut self, retry: RetryStrategy) -> &mut Self
pub fn write_cmd<'b>(&self, buffer: &'b [u8]) -> Command<'b>
pub fn write_multiple_cmd<'b>(&self, buffers: &'b [&'b [u8]]) -> Command<'b>
pub fn read_cmd<'b>(&self, buffer: &'b mut [u8]) -> Command<'b>
pub fn wtr_cmd<'b>( &self, write_buffer: &'b [u8], read_buffer: &'b mut [u8] ) -> Command<'b>
pub fn wmtr_cmd<'b>( &self, write_buffers: &'b [&'b [u8]], read_buffer: &'b mut [u8] ) -> Command<'b>
Trait Implementations§
source§impl Clone for CommandBuilder
impl Clone for CommandBuilder
source§fn clone(&self) -> CommandBuilder
fn clone(&self) -> CommandBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CommandBuilder
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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