Trait wasmtime::component::bindgen_examples::_4_imported_resources::example::imported_resources::logging::HostLogger
source · pub trait HostLogger {
// Required methods
fn new(&mut self, max_level: Level) -> Result<Resource<Logger>>;
fn get_max_level(&mut self, self_: Resource<Logger>) -> Result<Level>;
fn set_max_level(
&mut self,
self_: Resource<Logger>,
level: Level,
) -> Result<()>;
fn log(
&mut self,
self_: Resource<Logger>,
level: Level,
msg: String,
) -> Result<()>;
fn drop(&mut self, rep: Resource<Logger>) -> Result<()>;
}
Available on crate feature
runtime
and crate feature component-model
and docsrs
only.