[][src]Enum toio::proto::Id

pub enum Id {
    Pos(IdPos),
    Std(IdStd),
    PosMissed,
    StdMissed,
}

Message from the id reader.

Variants

Pos(IdPos)

The content of the position id.

Std(IdStd)

The content of the standard id.

PosMissed

Indicates the cube goes out of the positionn id area.

StdMissed

Indicates the cube goes out of the standard id area.

Implementations

impl Id[src]

pub fn new_pos(f0: IdPos) -> Self[src]

Constructs a new Id::Pos.

impl Id[src]

pub fn new_std(f0: IdStd) -> Self[src]

Constructs a new Id::Std.

impl Id[src]

pub fn new_pos_missed() -> Self[src]

Constructs a new Id::PosMissed.

impl Id[src]

pub fn new_std_missed() -> Self[src]

Constructs a new Id::StdMissed.

Trait Implementations

impl Clone for Id[src]

impl Debug for Id[src]

impl Eq for Id[src]

impl PartialEq<Id> for Id[src]

impl StructuralEq for Id[src]

impl StructuralPartialEq for Id[src]

impl<'_> TryFrom<&'_ [u8]> for Id[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Id> for Vec<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Id> for (Uuid, Vec<u8>)[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for Id[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Id

impl Send for Id

impl Sync for Id

impl Unpin for Id

impl UnwindSafe for Id

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.