Trait TpmLogger

Source
pub trait TpmLogger: Send + Sync {
    // Required methods
    fn log_event_and_flush<'life0, 'async_trait>(
        &'life0 self,
        event: TpmLogEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn log_event(&self, event: TpmLogEvent);
}
Expand description

A trait for sending log event to the host.

Required Methods§

Source

fn log_event_and_flush<'life0, 'async_trait>( &'life0 self, event: TpmLogEvent, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Send an event with the given id to the host and flush.

Source

fn log_event(&self, event: TpmLogEvent)

Send an event with the given id to the host without flushing.

Implementations on Foreign Types§

Source§

impl TpmLogger for Option<Arc<dyn TpmLogger>>

Source§

fn log_event_and_flush<'life0, 'async_trait>( &'life0 self, event: TpmLogEvent, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn log_event(&self, event: TpmLogEvent)

Implementors§