[][src]Struct dtn7::core::DtnCore

pub struct DtnCore {
    pub endpoints: Vec<Box<dyn ApplicationAgent + Send>>,
    pub cl_list: Vec<Box<dyn ConvergencyLayerAgent>>,
    pub routing_agent: Box<dyn RoutingAgent>,
}

Fields

endpoints: Vec<Box<dyn ApplicationAgent + Send>>cl_list: Vec<Box<dyn ConvergencyLayerAgent>>routing_agent: Box<dyn RoutingAgent>

Methods

impl DtnCore[src]

pub fn new() -> DtnCore[src]

pub fn register_application_agent<T: 'static + ApplicationAgent + Send>(
    &mut self,
    aa: T
)
[src]

pub fn unregister_application_agent<T: 'static + ApplicationAgent>(
    &mut self,
    aa: T
)
[src]

pub fn eids(&self) -> Vec<String>[src]

pub fn bundles(&self) -> Vec<String>[src]

pub fn bundle_names(&self) -> Vec<String>[src]

pub fn get_endpoint_mut(
    &mut self,
    eid: &EndpointID
) -> Option<&mut Box<dyn ApplicationAgent + Send>>
[src]

pub fn get_endpoint(
    &self,
    eid: &EndpointID
) -> Option<&Box<dyn ApplicationAgent + Send>>
[src]

Trait Implementations

impl Debug for DtnCore[src]

impl Default for DtnCore[src]

Auto Trait Implementations

impl !RefUnwindSafe for DtnCore

impl Send for DtnCore

impl !Sync for DtnCore

impl Unpin for DtnCore

impl !UnwindSafe for DtnCore

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,