pub struct AutomaticLoggerHostBinding {}Expand description
A host binding for the wascc:logging capability
Implementations§
Source§impl AutomaticLoggerHostBinding
impl AutomaticLoggerHostBinding
Sourcepub fn error(&self, body: &str) -> HandlerResult<()>
pub fn error(&self, body: &str) -> HandlerResult<()>
Write a log entry at the error level. You should instead use the error! macro
Sourcepub fn warn(&self, body: &str) -> HandlerResult<()>
pub fn warn(&self, body: &str) -> HandlerResult<()>
Write a log entry at the warn level. You should instead use the warn! macro
Sourcepub fn info(&self, body: &str) -> HandlerResult<()>
pub fn info(&self, body: &str) -> HandlerResult<()>
Write a log entry at the info level. You should instead use the info! macro
Sourcepub fn debug(&self, body: &str) -> HandlerResult<()>
pub fn debug(&self, body: &str) -> HandlerResult<()>
Write a log entry at the debug level. You should instead use the debug! macro
Sourcepub fn trace(&self, body: &str) -> HandlerResult<()>
pub fn trace(&self, body: &str) -> HandlerResult<()>
Write a log entry at the trace level. You should instead use the trace! macro
Trait Implementations§
Source§impl Default for AutomaticLoggerHostBinding
impl Default for AutomaticLoggerHostBinding
Source§impl Log for AutomaticLoggerHostBinding
impl Log for AutomaticLoggerHostBinding
Auto Trait Implementations§
impl Freeze for AutomaticLoggerHostBinding
impl RefUnwindSafe for AutomaticLoggerHostBinding
impl Send for AutomaticLoggerHostBinding
impl Sync for AutomaticLoggerHostBinding
impl Unpin for AutomaticLoggerHostBinding
impl UnwindSafe for AutomaticLoggerHostBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more