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§
Sourcefn 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_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.
Sourcefn log_event(&self, event: TpmLogEvent)
fn log_event(&self, event: TpmLogEvent)
Send an event with the given id to the host without flushing.