mm_client_common

Trait LogDelegate

Source
pub trait LogDelegate:
    Send
    + Sync
    + Debug {
    // Required method
    fn log(&self, level: LogLevel, target: String, msg: String);
}
Expand description

An interface for receiving logs from this library.

Required Methods§

Source

fn log(&self, level: LogLevel, target: String, msg: String)

Trait Implementations§

Source§

impl<T> FfiConverterArc<T> for dyn LogDelegate

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 LogDelegate

Implementors§