Rev to 0.7.0 after updating read & read_and #17
Loading…
Reference in New Issue
No description provided.
Delete Branch "update_read"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TailedFile::read
is public again, and no longer takes a&File
as
TailedFile
already has aPath
that is of use. The methodnow checks rotation/truncation, does the read, and returns
Result<Vec<u8>>
for users who may just want the bytes.TailedFile::read_and
now callsread
and passes the resultantunderlying
&[u8]
to a user defined function that is its onlyargument.
Tests updated accordingly.
Update made after discussion with user Thomas Herzog
<@un9l:matrix.org> in https://matrix.to/#/#staart:txrx.staart.one
on 2023-01-12.
Closes #16