Trait VmgsLogger

Source
pub trait VmgsLogger: Send + Sync {
    // Required method
    fn log_event_fatal<'life0, 'async_trait>(
        &'life0 self,
        event: VmgsLogEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait for sending log event to the host.

Required Methods§

Source

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

Send a fatal event with the given id to the host.

Implementations on Foreign Types§

Source§

impl VmgsLogger for Option<Arc<dyn VmgsLogger>>

Source§

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

Implementors§