pub struct SlaveCommand {
pub kind: SlaveCommandKind,
pub address: SlaveAddress,
}Expand description
Command received from the I2C master.
Fields§
§kind: SlaveCommandKindTransaction direction.
address: SlaveAddressAddress that was matched.
Trait Implementations§
Source§impl Clone for SlaveCommand
impl Clone for SlaveCommand
Source§fn clone(&self) -> SlaveCommand
fn clone(&self) -> SlaveCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlaveCommand
Source§impl Debug for SlaveCommand
impl Debug for SlaveCommand
impl Eq for SlaveCommand
Source§impl PartialEq for SlaveCommand
impl PartialEq for SlaveCommand
impl StructuralPartialEq for SlaveCommand
Auto Trait Implementations§
impl Freeze for SlaveCommand
impl RefUnwindSafe for SlaveCommand
impl Send for SlaveCommand
impl Sync for SlaveCommand
impl Unpin for SlaveCommand
impl UnsafeUnpin for SlaveCommand
impl UnwindSafe for SlaveCommand
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)