TKTokenDriverDelegate

Trait TKTokenDriverDelegate 

Source
pub unsafe trait TKTokenDriverDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn tokenDriver_tokenForConfiguration_error(
        &self,
        driver: &TKTokenDriver,
        configuration: &TKTokenConfiguration,
    ) -> Result<Retained<TKToken>, Retained<NSError>>
       where Self: Sized + Message { ... }
    unsafe fn tokenDriver_terminateToken(
        &self,
        driver: &TKTokenDriver,
        token: &TKToken,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature TKToken only.
Expand description

Delegate for customizing token driver operations. SmartCard tokens should implement TKSmartCardTokenDriverDelegate instead of this base protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn tokenDriver_tokenForConfiguration_error( &self, driver: &TKTokenDriver, configuration: &TKTokenConfiguration, ) -> Result<Retained<TKToken>, Retained<NSError>>
where Self: Sized + Message,

Available on crate feature TKTokenConfiguration only.

Creates new token for specified configuration. SmartCard token drivers should not implement this method.

Source

unsafe fn tokenDriver_terminateToken( &self, driver: &TKTokenDriver, token: &TKToken, )
where Self: Sized + Message,

Terminates previously created token, should release all resources associated with it.

Trait Implementations§

Source§

impl ProtocolType for dyn TKTokenDriverDelegate

Source§

const NAME: &'static str = "TKTokenDriverDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn TKTokenDriverDelegate

Implementations on Foreign Types§

Source§

impl<T> TKTokenDriverDelegate for ProtocolObject<T>

Implementors§