Skip to main content

BlobSource

Trait BlobSource 

pub trait BlobSource {
    // Required method
    fn blob(&self, hash: &[u8; 32]) -> Option<Arc<Vec<u8>>>;
}
Expand description

Where a renderer gets a blob’s encoded bytes.

Required Methods§

fn blob(&self, hash: &[u8; 32]) -> Option<Arc<Vec<u8>>>

Implementors§

§

impl<F> BlobSource for F
where F: Fn(&[u8; 32]) -> Option<Arc<Vec<u8>>>,