Skip to main content

LinkSource

Trait LinkSource 

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

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

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§

Source§

impl<L: Link + Send + 'static> LinkSource for SingleAttachmentSource<L>