#[non_exhaustive]pub struct Config { /* private fields */ }Expand description
I2C Slave configuration
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_address(self, address: I2cAddress) -> Self
pub fn with_address(self, address: I2cAddress) -> Self
Assign the given value to the address field.
Sourcepub fn address(&self) -> I2cAddress
pub fn address(&self) -> I2cAddress
The I2C slave address.
Trait Implementations§
impl Copy for Config
Available on crate feature
unstable only.impl Eq for Config
Available on crate feature
unstable only.impl StructuralPartialEq for Config
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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)