pub trait SegmentSource:
'static
+ Send
+ Sync {
// Required method
fn request(&self, id: SegmentId) -> SegmentFuture;
}Expand description
A trait for providing segment data to a crate::LayoutReader.
Required Methods§
Sourcefn request(&self, id: SegmentId) -> SegmentFuture
fn request(&self, id: SegmentId) -> SegmentFuture
Request a segment, returning a future that will eventually resolve to the segment data.