pub struct LockedWriter {
pub writer: Option<Spinlock<TerminalWriter>>,
pub serial: Option<Spinlock<SerialPort>>,
}Fields§
§writer: Option<Spinlock<TerminalWriter>>§serial: Option<Spinlock<SerialPort>>Implementations§
Source§impl LockedWriter
impl LockedWriter
pub fn new( buffer: &'static mut [u8], info: FrameBufferInfo, writer_log_status: bool, serial_log_status: bool, ) -> Self
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 LockedWriter
impl Log for LockedWriter
Auto Trait Implementations§
impl !Freeze for LockedWriter
impl !RefUnwindSafe for LockedWriter
impl Send for LockedWriter
impl Sync for LockedWriter
impl Unpin for LockedWriter
impl !UnwindSafe for LockedWriter
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