[][src]Enum mcp3208::Channel

#[repr(u8)]pub enum Channel {
    Ch0,
    Ch1,
    Ch2,
    Ch3,
    Ch4,
    Ch5,
    Ch6,
    Ch7,
}

Variants

Ch0
Ch1
Ch2
Ch3
Ch4
Ch5
Ch6
Ch7

Implementations

impl Channel[src]

pub const VALUES: [Channel; 8][src]

List of all channels to facilitate iteration and selection by integer indices

pub fn partner(self) -> Self[src]

Return the channel which will be used in pseudo-differential query mode

Trait Implementations

impl Clone for Channel[src]

impl Copy for Channel[src]

impl Debug for Channel[src]

impl TryFrom<u8> for Channel[src]

Try to convert an integer into a typed channel

type Error = Mcp3208Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Channel

impl Send for Channel

impl Sync for Channel

impl Unpin for Channel

impl UnwindSafe for Channel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.