Enum gpio::GpioValue [] [src]

pub enum GpioValue {
    Low,
    High,
}

A value read from or written to a GPIO port

Variants

A low value, usually 0 V

A high value, commonly 3.3V or 5V

Trait Implementations

impl Debug for GpioValue
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for GpioValue
[src]

impl Clone for GpioValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for GpioValue
[src]

impl PartialEq for GpioValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl From<bool> for GpioValue
[src]

[src]

Performs the conversion.

impl From<u8> for GpioValue
[src]

[src]

Performs the conversion.

impl From<GpioValue> for bool
[src]

[src]

Performs the conversion.

impl From<GpioValue> for u8
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for GpioValue

impl Sync for GpioValue