Skip to main content

HostLoggerWithStore

Trait HostLoggerWithStore 

Source
pub trait HostLoggerWithStore<T>: HasData + Send {
    // Required method
    fn log(
        accessor: &Accessor<T, Self>,
        self_: Resource<Logger>,
        level: Level,
        msg: String,
    ) -> impl Future<Output = Result<()>> + Send;
}
Available on crate feature component-model and crate feature runtime and (docsrs) only.

Required Methods§

Source

fn log( accessor: &Accessor<T, Self>, self_: Resource<Logger>, level: Level, msg: String, ) -> impl Future<Output = Result<()>> + Send

May block if the host’s log buffer is full (i.e. backpressure).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§