Struct wasmtime::component::bindgen_examples::_6_exported_resources::exports::example::exported_resources::logging::GuestLogger
source · pub struct GuestLogger<'a> { /* private fields */ }
Available on crate feature
runtime
and crate feature component-model
and docsrs
only.Implementations§
source§impl GuestLogger<'_>
impl GuestLogger<'_>
pub fn call_constructor<S: AsContextMut>( &self, store: S, arg0: Level, ) -> Result<ResourceAny>
pub fn call_get_max_level<S: AsContextMut>( &self, store: S, arg0: ResourceAny, ) -> Result<Level>
pub fn call_set_max_level<S: AsContextMut>( &self, store: S, arg0: ResourceAny, arg1: Level, ) -> Result<()>
pub fn call_log<S: AsContextMut>( &self, store: S, arg0: ResourceAny, arg1: Level, arg2: &str, ) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for GuestLogger<'a>
impl<'a> RefUnwindSafe for GuestLogger<'a>
impl<'a> Send for GuestLogger<'a>
impl<'a> Sync for GuestLogger<'a>
impl<'a> Unpin for GuestLogger<'a>
impl<'a> UnwindSafe for GuestLogger<'a>
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