Skip to main content

LinkSource

Trait LinkSource 

Source
pub trait LinkSource: MaybeSend + 'static {
    type Link: Link + MaybeSend;

    // Required method
    fn next_link(
        &mut self,
    ) -> impl Future<Output = Result<Attachment<Self::Link>>> + MaybeSend + '_;
}
Expand description

Source of transport links. With reconnect machinery removed there’s only ever one call to next_link per session, but the trait remains so existing code paths don’t have to special-case the single-link case.

Required Associated Types§

Required Methods§

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.

Implementors§