pub struct UefiLogger;
Expand description
A simple logging backend for UEFI.
Implementations§
Source§impl UefiLogger
impl UefiLogger
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Constructs a new UefiLogger
.
Sourcepub fn static_new() -> &'static Self
pub fn static_new() -> &'static Self
Constructs a new UefiLogger
, then immediately leaks it so that it can be used with set_logger
.
This is a possibly simpler alternative to using a global static logger.
Trait Implementations§
Source§impl Default for UefiLogger
impl Default for UefiLogger
Source§fn default() -> UefiLogger
fn default() -> UefiLogger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UefiLogger
impl RefUnwindSafe for UefiLogger
impl Send for UefiLogger
impl Sync for UefiLogger
impl Unpin for UefiLogger
impl UnwindSafe for UefiLogger
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