[−][src]Struct wascc_actor::logger::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
impl RefUnwindSafe for AutomaticLoggerHostBinding
impl Send for AutomaticLoggerHostBinding
impl Sync for AutomaticLoggerHostBinding
impl Unpin for AutomaticLoggerHostBinding
impl UnwindSafe for AutomaticLoggerHostBinding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,