pub struct Ref<T: RefCountable> { /* private fields */ }Implementations§
Source§impl Ref<Logger>
impl Ref<Logger>
pub fn with_level(self, level: LevelFilter) -> Ref<Logger>
Sourcepub fn init(self)
pub fn init(self)
Calling this will set the global logger to self.
NOTE: There is no guarantee that logs will be sent to BinaryNinja as another log sink may have already been initialized beforehand.
Sourcepub fn send_log(&self, level: Level, msg: &str)
pub fn send_log(&self, level: Level, msg: &str)
Send a log to the logger instance, if you instead want to use the log crate and its facilities,
you should use Ref<Logger>::init to initialize the log compatible logger.
Trait Implementations§
impl Eq for Ref<Metadata>
impl<T: RefCountable + Eq> Eq for Ref<T>
Auto Trait Implementations§
impl<T> Freeze for Ref<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ref<T>where
T: RefUnwindSafe,
impl<T> Send for Ref<T>where
T: Send,
impl<T> Sync for Ref<T>where
T: Sync,
impl<T> Unpin for Ref<T>where
T: Unpin,
impl<T> UnwindSafe for Ref<T>where
T: UnwindSafe,
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