Struct wasmtime::component::bindgen_examples::_4_imported_resources::example::imported_resources::logging::Logger
source · pub struct Logger {
pub max_level: Level,
}
Available on crate feature
runtime
and crate feature component-model
and docsrs
only.Expand description
A sample host-defined type which contains arbitrary host-defined data.
In this case this is relatively simple but there’s no restrictions on what
this type can hold other than that it must be 'static + Send
.
Fields§
§max_level: Level
Auto Trait Implementations§
impl Freeze for MyLogger
impl RefUnwindSafe for MyLogger
impl Send for MyLogger
impl Sync for MyLogger
impl Unpin for MyLogger
impl UnwindSafe for MyLogger
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