Struct asuran::repository::backend::multifile::segment::SegmentHandler [−][src]
pub struct SegmentHandler { /* fields omitted */ }
Implementations
Warnings
- In order to ensure file locks are freed and all data is written to disk, you must ensure that you call the close function on all segments before the program terminates.
Opens a SegmentHandler
, creating the data directory and the initial
segment if it does not exist
Errors
Will error if creating/locking a segment fails, such as if the user does not have access to that directory, or if any other I/O error occurs
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SegmentHandler
impl Send for SegmentHandler
impl Sync for SegmentHandler
impl Unpin for SegmentHandler
impl !UnwindSafe for SegmentHandler
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more