pub trait Q42SegmentRangeFactory {
type Source: Q42RangeSource;
// Required method
fn open_segment(&self, segment: &Q42VolumeSegment) -> Result<Self::Source>;
}Expand description
Opens an immutable child source identified by the front-embedded manifest. Construction may allocate; all subsequent block reads remain caller-buffered.
Required Associated Types§
type Source: Q42RangeSource
Required Methods§
Sourcefn open_segment(&self, segment: &Q42VolumeSegment) -> Result<Self::Source>
fn open_segment(&self, segment: &Q42VolumeSegment) -> Result<Self::Source>
Open the segment as a range source (local file, HTTP range, IPFS block — transport is the implementor’s choice).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl Q42SegmentRangeFactory for IpfsGatewaySegmentFactory
Available on non-WebAssembly only.
impl Q42SegmentRangeFactory for IpfsGatewaySegmentFactory
Available on non-WebAssembly only.