[−][src]Struct klogger::Writer
A writer for the serial line. It holds a lock so multiple cores/threads can print at the same time.
Methods
impl<'a> Writer<'a>
[src]
pub fn get_module(module: &str) -> Writer<'a>
[src]
Obtain a logger for the specified module.
pub fn get() -> Writer<'a>
[src]
Obtain a logger.
Trait Implementations
impl<'a> Drop for Writer<'a>
[src]
fn drop(&mut self)
[src]
Release the logger (and the line_lock), end output with a newline.
Serial standard mandates the use of '\r\n' for a newline and resetting the curser to the beginning.
impl<'a> Write for Writer<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Writer<'a>
impl<'a> Send for Writer<'a>
impl<'a> Sync for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> !UnwindSafe for Writer<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,