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
Writes a string slice into this writer, returning whether the write succeeded. Read more