Trait dtn7::core::store::BundleStore

source ·
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> { ... }
}

Required Methods§

source

fn push(&mut self, bp: &Bundle) -> Result<()>

source

fn update_metadata(&mut self, bp: &BundlePack) -> Result<()>

source

fn remove(&mut self, bid: &str) -> Result<()>

source

fn count(&self) -> u64

source

fn all_ids(&self) -> Vec<String>

source

fn has_item(&self, bid: &str) -> bool

source

fn pending(&self) -> Vec<String>

source

fn filter(&self, criteria: &HashSet<Constraint>) -> Vec<String>

source

fn bundles(&self) -> Vec<BundlePack>

source

fn get_bundle(&self, bpid: &str) -> Option<Bundle>

source

fn get_metadata(&self, bpid: &str) -> Option<BundlePack>

Provided Methods§

source

fn forwarding(&self) -> Vec<String>

source

fn bundles_status(&self) -> Vec<String>

source

fn src_dst_ts(&self) -> Vec<String>

source

fn filter_addr(&self, criteria: &str) -> Vec<String>

Implementors§