[][src]Enum toio::proto::Config

pub enum Config {
    Version(ConfigVersion),
    Level(ConfigLevel),
    Collision(ConfigCollision),
    DoubleTap(ConfigDoubleTap),
    VersionRes(ConfigVersionRes),
}

Message from/to configuration.

Variants

Version(ConfigVersion)

Requests protocol version.

Changes the settings of level detection.

Collision(ConfigCollision)

Changes the settings of collision detection.

DoubleTap(ConfigDoubleTap)

Changes the settings of double-tap detection.

VersionRes(ConfigVersionRes)

The protocol version information.

Implementations

impl Config[src]

pub fn new_version(f0: ConfigVersion) -> Self[src]

Constructs a new Config::Version.

impl Config[src]

pub fn new_level(f0: ConfigLevel) -> Self[src]

Constructs a new Config::Level.

impl Config[src]

pub fn new_collision(f0: ConfigCollision) -> Self[src]

Constructs a new Config::Collision.

impl Config[src]

pub fn new_double_tap(f0: ConfigDoubleTap) -> Self[src]

Constructs a new Config::DoubleTap.

impl Config[src]

pub fn new_version_res(f0: ConfigVersionRes) -> Self[src]

Constructs a new Config::VersionRes.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Eq for Config[src]

impl PartialEq<Config> for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[src]

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

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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.