SegmentSource

Trait SegmentSource 

Source
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§

Source

fn request(&self, id: SegmentId) -> SegmentFuture

Request a segment, returning a future that will eventually resolve to the segment data.

Implementors§