pub trait HostLogger: Send {
// Required methods
fn new(
&mut self,
max_level: Level,
) -> impl Future<Output = Result<Resource<Logger>>> + Send;
fn get_max_level(
&mut self,
self_: Resource<Logger>,
) -> impl Future<Output = Result<Level>> + Send;
fn set_max_level(
&mut self,
self_: Resource<Logger>,
level: Level,
) -> impl Future<Output = Result<()>> + Send;
fn log(
&mut self,
self_: Resource<Logger>,
level: Level,
msg: String,
) -> impl Future<Output = Result<()>> + Send;
fn drop(
&mut self,
rep: Resource<Logger>,
) -> impl Future<Output = Result<()>> + Send;
}
Available on crate feature
runtime
and crate feature component-model
and docsrs
only.Required Methods§
fn new( &mut self, max_level: Level, ) -> impl Future<Output = Result<Resource<Logger>>> + Send
fn get_max_level( &mut self, self_: Resource<Logger>, ) -> impl Future<Output = Result<Level>> + Send
fn set_max_level( &mut self, self_: Resource<Logger>, level: Level, ) -> impl Future<Output = Result<()>> + Send
fn log( &mut self, self_: Resource<Logger>, level: Level, msg: String, ) -> impl Future<Output = Result<()>> + Send
fn drop( &mut self, rep: Resource<Logger>, ) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.