Trait flo_ui::image::ImageData
[−]
[src]
pub trait ImageData: Send + Sync { fn read(&self) -> Box<Read + Send>; fn read_future(&self) -> Box<Stream<Item = u8, Error = ()>>; }
Trait implemented by things that can provide data for an image
Required Methods
ⓘImportant traits for Box<R>
fn read(&self) -> Box<Read + Send>
Reads the raw data for this image
ⓘImportant traits for Box<R>
fn read_future(&self) -> Box<Stream<Item = u8, Error = ()>>
Reads the raw data for this image
Implementors
impl ImageData for InMemoryImageData
impl ImageData for StaticImageData