pub struct LogMessage { /* private fields */ }Expand description
Implementations§
Source§impl LogMessage
impl LogMessage
pub fn new() -> Self
Sourcepub fn captured_logs(&self) -> Vec<(u8, String)>
pub fn captured_logs(&self) -> Vec<(u8, String)>
Get captured logs
Sourcepub fn clear_logs(&self)
pub fn clear_logs(&self)
Clear captured logs
Trait Implementations§
Source§impl Default for LogMessage
impl Default for LogMessage
Source§impl HostFunction for LogMessage
impl HostFunction for LogMessage
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description
Source§fn execute(&self, ctx: &mut HostFunctionContext, args: &[u8]) -> HostCallResult
fn execute(&self, ctx: &mut HostFunctionContext, args: &[u8]) -> HostCallResult
Execute the function
Auto Trait Implementations§
impl !Freeze for LogMessage
impl !RefUnwindSafe for LogMessage
impl Send for LogMessage
impl Sync for LogMessage
impl Unpin for LogMessage
impl UnsafeUnpin for LogMessage
impl UnwindSafe for LogMessage
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more