pub struct Handle { /* private fields */ }
Expand description

An opaque handler to maintain the logger’s backing task alive.

Once this object goes out of scope, the logger’s database persisting logic stops and attempts to log may fail or get stuck.

Implementations

Returns the sorted list of all log entries in the database.

Given that this is exposed for testing purposes only, this just returns a flat textual representation of the log entry and does not try to deserialize it as a LogEntry. This is for simplicity given that a LogEntry keeps references to static strings and we cannot obtain those from the database.

Trait Implementations

Executes the destructor for this type. 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.

Should always be Self

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.