[][src]Trait dtn7::core::store::BundleStore

pub trait BundleStore: Debug {
    fn push(&mut self, bp: &BundlePack);
fn remove(&mut self, bid: String) -> Option<BundlePack>;
fn count(&self) -> u64;
fn all_ids(&self) -> Vec<String>;
fn has_item(&self, bp: &BundlePack) -> bool;
fn pending(&self) -> Vec<&BundlePack>;
fn ready(&self) -> Vec<&BundlePack>;
fn forwarding(&self) -> Vec<&BundlePack>;
fn bundles(&self) -> Vec<&BundlePack>; fn bundles_status(&self) -> Vec<String> { ... } }

Required methods

fn push(&mut self, bp: &BundlePack)

fn remove(&mut self, bid: String) -> Option<BundlePack>

fn count(&self) -> u64

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

fn has_item(&self, bp: &BundlePack) -> bool

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

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

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

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

Loading content...

Provided methods

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

Loading content...

Implementors

impl BundleStore for SimpleBundleStore[src]

Loading content...