[][src]Struct hap::Pin

pub struct Pin { /* fields omitted */ }

The Pin struct represents the server's 8 digit pin used for pairing.

The pin consists of eight digits between 0 and 9 and defaults to 11122333.

The following pins are considered too easy and are therefore not allowed:

  • 12345678
  • 87654321
  • 00000000
  • 11111111
  • 22222222
  • 33333333
  • 44444444
  • 55555555
  • 66666666
  • 77777777
  • 88888888
  • 99999999

Implementations

impl Pin[src]

pub fn new(pin: [u8; 8]) -> Result<Self>[src]

Creates a new Pin.

Trait Implementations

impl Clone for Pin[src]

impl Debug for Pin[src]

impl<'de> Deserialize<'de> for Pin[src]

impl Serialize for Pin[src]

impl ToString for Pin[src]

Auto Trait Implementations

impl RefUnwindSafe for Pin

impl Send for Pin

impl Sync for Pin

impl Unpin for Pin

impl UnwindSafe for Pin

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,