[][src]Struct wascc_actor::logger::AutomaticLoggerHostBinding

pub struct AutomaticLoggerHostBinding {}

A host binding for the wascc:logging capability

Implementations

impl AutomaticLoggerHostBinding[src]

pub fn log(&self, level: u32, body: &str) -> HandlerResult<()>[src]

Write a log entry on the host

pub fn error(&self, body: &str) -> HandlerResult<()>[src]

Write a log entry at the error level. You should instead use the error! macro

pub fn warn(&self, body: &str) -> HandlerResult<()>[src]

Write a log entry at the warn level. You should instead use the warn! macro

pub fn info(&self, body: &str) -> HandlerResult<()>[src]

Write a log entry at the info level. You should instead use the info! macro

pub fn debug(&self, body: &str) -> HandlerResult<()>[src]

Write a log entry at the debug level. You should instead use the debug! macro

pub fn trace(&self, body: &str) -> HandlerResult<()>[src]

Write a log entry at the trace level. You should instead use the trace! macro

Trait Implementations

impl Default for AutomaticLoggerHostBinding[src]

impl Log for AutomaticLoggerHostBinding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.