[][src]Struct lock_keys::LockKey

pub struct LockKey { /* fields omitted */ }

The lock ley object to hold the OS specific handle when it is required.

Trait Implementations

impl Debug for LockKey[src]

impl Drop for LockKey[src]

impl LockKeyWrapper for LockKey[src]

fn new() -> Self[src]

Creates a new lock key object using Xlib for handling.

fn set(&self, key: LockKeys, state: LockKeyState) -> LockKeyResult[src]

Sets a new state for the lock key using Xlib.

fn enable(&self, key: LockKeys) -> LockKeyResult[src]

Enables the lock key using Xlib.

fn disable(&self, key: LockKeys) -> LockKeyResult[src]

Disables the lock key using Xlib.

fn toggle(&self, key: LockKeys) -> LockKeyResult[src]

Toggles the lock key state returning its previous state using Xlib.

fn state(&self, key: LockKeys) -> LockKeyResult[src]

Retrieves the lock key state using Xlib.

Auto Trait Implementations

impl RefUnwindSafe for LockKey

impl !Send for LockKey

impl !Sync for LockKey

impl Unpin for LockKey

impl UnwindSafe for LockKey

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, 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.