Struct barc::BarcFile [−][src]
pub struct BarcFile { /* fields omitted */ }
Expand description
Reference to a BARC File by Path
, supporting up to 1 writer and N
readers concurrently.
Implementations
Return new instance for the specified path, which may be an
existing file, or one to be created when writer
is opened.
Get a writer for this file, opening the file for write (and
possibly creating it, or erroring) if this is the first time
called. May block on the write lock, as only one BarcWriter
instance is allowed.
Get a reader for this file. Errors if the file does not exist.