Struct klogger::Writer[][src]

pub struct Writer<'a> { /* fields omitted */ }

A writer for the serial line. It holds a lock so multiple cores/threads can print at the same time.

Implementations

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]

fn write_str(&mut self, s: &str) -> Result[src]

Write stuff to serial out.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.