pub trait LockKeyWrapper {
    fn new() -> Self;
    fn set(&self, key: LockKeys, state: LockKeyState) -> LockKeyResult;
    fn enable(&self, key: LockKeys) -> LockKeyResult;
    fn disable(&self, key: LockKeys) -> LockKeyResult;
    fn toggle(&self, key: LockKeys) -> LockKeyResult;
    fn state(&self, key: LockKeys) -> LockKeyResult;
}
Expand description

A collection of methods that are required for lock key handling.

Required Methods§

Creates a new lock key object.

Sets a new state for the lock key.

Enables the lock key.

Disables the lock key.

Toggles the lock key state returning its previous one.

Retrieves the lock key state.

Implementors§