pub trait BundleStore: Debug {
Show 15 methods
// Required methods
fn push(&mut self, bp: &Bundle) -> Result<()>;
fn update_metadata(&mut self, bp: &BundlePack) -> Result<()>;
fn remove(&mut self, bid: &str) -> Result<()>;
fn count(&self) -> u64;
fn all_ids(&self) -> Vec<String>;
fn has_item(&self, bid: &str) -> bool;
fn pending(&self) -> Vec<String>;
fn filter(&self, criteria: &HashSet<Constraint>) -> Vec<String>;
fn bundles(&self) -> Vec<BundlePack>;
fn get_bundle(&self, bpid: &str) -> Option<Bundle>;
fn get_metadata(&self, bpid: &str) -> Option<BundlePack>;
// Provided methods
fn forwarding(&self) -> Vec<String> { ... }
fn bundles_status(&self) -> Vec<String> { ... }
fn src_dst_ts(&self) -> Vec<String> { ... }
fn filter_addr(&self, criteria: &str) -> Vec<String> { ... }
}