Trait dtn7::core::store::BundleStore [−][src]
pub trait BundleStore: Debug { 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 forwarding(&self) -> Vec<String>; fn bundles(&self) -> Vec<BundlePack>; fn get_bundle(&self, bpid: &str) -> Option<Bundle>; fn get_metadata(&self, bpid: &str) -> Option<BundlePack>; fn bundles_status(&self) -> Vec<String> { ... } }