ContentStore

Trait ContentStore 

Source
pub trait ContentStore:
    Send
    + Sync
    + 'static {
    // Required method
    fn get(&self, hash_hex: &str) -> Result<Option<Vec<u8>>>;
}
Expand description

Trait for content storage that can be used by WebRTC peers

Required Methods§

Source

fn get(&self, hash_hex: &str) -> Result<Option<Vec<u8>>>

Get content by hex hash

Implementors§