SkfDevice

Trait SkfDevice 

Source
pub trait SkfDevice:
    DeviceCtl
    + DeviceAuth
    + AppManager
    + DeviceCrypto {
    // Required methods
    fn block_cipher(&self) -> Result<Box<dyn SkfBlockCipher + Send + Sync>>;
    fn name(&self) -> &str;
}
Expand description

Represents a device instance,call DeviceManager::connect() or DeviceManager::connect_selected() to get one

§Disconnect

Device instance is disconnected when Drop

Required Methods§

Source

fn block_cipher(&self) -> Result<Box<dyn SkfBlockCipher + Send + Sync>>

Block cipher service

Source

fn name(&self) -> &str

The name when it is opened

Implementors§