pub type WeakDynTransport = Weak<dyn Transport>;Expand description
A weak trait-object Transport.
This is provided in the API as a suggestion for modules that store a reference to the transport
for sending messages but also implement TxModuleHandler. When registering as a module
handler, the transport keeps a reference to your module. If you then store an owned reference
to the transport, you create a circular reference. By using a weak reference instead, you can
create a well-behaved module that will be dropped when a space shuts down.
Aliased Typeยง
struct WeakDynTransport { /* private fields */ }