pub struct TestLogger {
pub logs: Vec<Vec<u8>>,
}
Expand description
A logger that simply accumulates all the logged items to be inspected at the
end of execution.
Initialize a logger.
Log the given slice as-is. If logging is not successful an error will be
returned. The event can be no bigger than
512
bytes.
Read more
Log a serializable event by serializing it with a supplied serializer.
Note that the serialized event must be no larger than
512
bytes.
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.