Trait AppExtTransport

Source
pub trait AppExtTransport {
    // Required methods
    fn add_transport<T>(&mut self, transport: T) -> &mut Self
       where T: 'static + Transport;
    fn add_transport_with_duration<T>(
        &mut self,
        transport: T,
        interval: Duration,
    ) -> &mut Self
       where T: 'static + Transport;
}

Required Methods§

Source

fn add_transport<T>(&mut self, transport: T) -> &mut Self
where T: 'static + Transport,

Adds the [transport_incoming] and [transport_outgoing] systems for a given transport type, and inserts it as a NonSend

Source

fn add_transport_with_duration<T>( &mut self, transport: T, interval: Duration, ) -> &mut Self
where T: 'static + Transport,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AppExtTransport for App

Source§

fn add_transport<T>(&mut self, transport: T) -> &mut App
where T: 'static + Transport,

Adds the [transport_incoming] and [transport_outgoing] systems for a given transport type, and inserts it as a NonSend

Source§

fn add_transport_with_duration<T>( &mut self, transport: T, interval: Duration, ) -> &mut App
where T: 'static + Transport,

Implementors§