pub struct Host {}
Implementations§
Source§impl Host
impl Host
Sourcepub fn write_log(
&self,
target: &str,
level: &str,
text: &str,
) -> HandlerResult<()>
pub fn write_log( &self, target: &str, level: &str, text: &str, ) -> HandlerResult<()>
Writes a log message to specified target and level
§Arguments
target
- Used to filter logs to a specific target, e.g. actor name. Can be left blanklevel
- Log level, acceptserror
,warn
,info
,debug
,trace
. Defaults toinfo
text
- Text to log
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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