Crate ilc [] [src]

Modules

context
convert

Log format conversion

dedup

Event deduplication

dummy
error
event

Common structures to represent the actual log data in memory. These will be used by all formats for encoding and decoding.

format
freq

Per-nick word/line statistics

parse

No-op log parsing

seen

Last-seen of nicks

sort

Internal (as opposed to external, not to be confused with private) log sorting

Structs

Context
Energymech
Event
Weechat

Traits

Decode
Encode

Functions

convert

Convert from one format to another, not necessarily different, format. In combination with a timezone offset, this can be used to correct the timestamps. Will return Err and abort conversion if the decoder yields Err or re-encoding fails.

decoder
dedup

Deduplicate subsequent identical elements, e.g. after a sorting operation. This will not read all events into memory, and only operate on a short window of events. Therefore, it'll only work correctly on sorted or very short logs.

encoder
force_decoder
force_encoder
freq

Return the count most active nicks, with lines, words and words per lines calculated.

open_files
parse

Simply parse the input, without further validation or conversion. No information is stored. This will return Err if the decoder yields Err.

seen

Return the last message of a given nickname, searching from the beginning of the logs. Will return Err if the decoder yields Err. This relies on absolute timestamps, and behaviour without full dates is undefined.

sort

Memory-intensive Sort the input, discarding faulty events. This will read all events into memory, then sort them by time and write them back. Behaviour is undefined if events lack full date information.