core_crypto_ffi

Trait CoreCryptoLogger

Source
pub trait CoreCryptoLogger:
    Debug
    + Send
    + Sync {
    // Required method
    fn log(
        &self,
        level: CoreCryptoLogLevel,
        message: String,
        context: Option<String>,
    );
}
Expand description

This trait is used to provide a callback mechanism to hook up the rerspective platform logging system

Required Methods§

Source

fn log( &self, level: CoreCryptoLogLevel, message: String, context: Option<String>, )

Function to setup a hook for the logging messages. Core Crypto will call this method whenever it needs to log a message.

Trait Implementations§

Source§

impl<T> FfiConverterArc<T> for dyn CoreCryptoLogger

Source§

const TYPE_ID_META: MetadataBuffer

Source§

type FfiType = *const c_void

Source§

fn lower(obj: Arc<Self>) -> Self::FfiType

Source§

fn try_lift(v: Self::FfiType) -> Result<Arc<Self>>

Source§

fn write(obj: Arc<Self>, buf: &mut Vec<u8>)

Source§

fn try_read(buf: &mut &[u8]) -> Result<Arc<Self>>

Source§

impl<T> LiftRef<T> for dyn CoreCryptoLogger

Implementors§