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§
Sourcefn add_transport<T>(&mut self, transport: T) -> &mut Selfwhere
T: 'static + Transport,
fn add_transport<T>(&mut self, transport: T) -> &mut Selfwhere
T: 'static + Transport,
Adds the [transport_incoming
] and [transport_outgoing
] systems for a given transport type, and inserts it as a NonSend
fn add_transport_with_duration<T>(
&mut self,
transport: T,
interval: Duration,
) -> &mut Selfwhere
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
impl AppExtTransport for App
Source§fn add_transport<T>(&mut self, transport: T) -> &mut Appwhere
T: 'static + Transport,
fn add_transport<T>(&mut self, transport: T) -> &mut Appwhere
T: 'static + Transport,
Adds the [transport_incoming
] and [transport_outgoing
] systems for a given transport type, and inserts it as a NonSend