Struct androidy_log::Writer[][src]

pub struct Writer { /* fields omitted */ }
Expand description

Android log writer.

By default every write is buffer unless buffer overflow happens. Buffered input is flushed on Drop or via manual call.

Implementations

Creates new instance using default tag Rust

  • prio - Logging priority.

Creates new instance using:

  • tag - Log message tag, truncated to first 23 characters.
  • prio - Logging priority

Creates new instance with:

  • tag - Log message’s tag as raw C string, that must be ending with 0. It is UB to pass anything else.
  • prio - Logging priority

Returns content of written buffer.

Flushes internal buffer, if any data is available.

Namely it dumps stored data in buffer via __android_log_write. And resets buffered length to 0.

Writes supplied text to the buffer.

On buffer overflow, data is logged via __android_log_write and buffer is filled with the rest of data

Trait Implementations

Executes the destructor for this type. Read more

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

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

Performs the conversion.

Performs the conversion.

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.