pub struct Writer<'a> { /* private fields */ }
Expand description

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

Implementations

Obtain a logger for the specified module.

Obtain a logger.

Trait Implementations

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.

Write stuff to serial out.

Writes a char into this writer, returning whether the write succeeded. Read more

Glue for usage of the write! macro with implementors of this trait. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.