pub struct Writer {
uart: OptionalCell<&'static Uart<'static>>,
}
Expand description
Writer is used by kernel::debug to panic message to the serial port.
Fields§
§uart: OptionalCell<&'static Uart<'static>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Writer
impl !RefUnwindSafe for Writer
impl !Send for Writer
impl !Sync for Writer
impl Unpin for Writer
impl !UnwindSafe for Writer
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