pub struct LockedLogger { /* private fields */ }
Expand description
A logger instance protected by a spinlock.
Implementations§
Source§impl LockedLogger
impl LockedLogger
Sourcepub fn new(
framebuffer: &'static mut [u8],
info: FrameBufferInfo,
frame_buffer_logger_status: bool,
serial_logger_status: bool,
) -> Self
pub fn new( framebuffer: &'static mut [u8], info: FrameBufferInfo, frame_buffer_logger_status: bool, serial_logger_status: bool, ) -> Self
Create a new instance that logs to the given framebuffer.
Sourcepub unsafe fn force_unlock(&self)
pub unsafe fn force_unlock(&self)
Force-unlocks the logger to prevent a deadlock.
§Safety
This method is not memory safe and should be only used when absolutely necessary.
Trait Implementations§
Source§impl Log for LockedLogger
impl Log for LockedLogger
Auto Trait Implementations§
impl !Freeze for LockedLogger
impl !RefUnwindSafe for LockedLogger
impl Send for LockedLogger
impl Sync for LockedLogger
impl Unpin for LockedLogger
impl !UnwindSafe for LockedLogger
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