Struct web_log::Console[][src]

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

Wrapper over browser’s console

On Drop performs flush or requires manual flush for written to be printed in the console. Buffer capacity is 4096 bytes. In case of overflow it dumps existing data to the console and overwrites with rest of it.

Implementations

Creates new instance

Returns content of written buffer.

Flushes internal buffer, if any data is available.

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

Writes supplied text to the buffer.

On buffer overflow, data is logged via Console 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.