Struct asuran::repository::backend::common::segment::Segment [−][src]
Expand description
Generic segment implementation wrapping any Read + Write + Seek
Implementations
Creates a new segment given a reader and a maximum size
Returns the number of bytes of free space remaining in the segment
Reads the chunk with the specified index from the segment
Auto Trait Implementations
impl<T> RefUnwindSafe for Segment<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Segment<T> where
T: UnwindSafe,
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