Struct sx1509::Owned [] [src]

pub struct Owned<I2C> where
    I2C: WriteRead + Write
{ /* fields omitted */ }

The Owned struct encapsulates the device and owns the bus. You need to borrow to issue IO, or release to release ownership of the bus.

Methods

impl<I2C> Owned<I2C> where
    I2C: WriteRead + Write
[src]

[src]

Release ownership of the bus and decompose the Owned instance back into its constituent Sx1509 and I2C components.

[src]

Create a Borrowed instance from this Owned instance so that you can perform IO on it. Ideally we'd impl Deref and DerefMut instead of doing this, but it seems impossible to do this and preserve appropriate lifetimes.

Trait Implementations

Auto Trait Implementations

impl<I2C> Send for Owned<I2C> where
    I2C: Send

impl<I2C> Sync for Owned<I2C> where
    I2C: Sync