StreamIntoAutoUpdatedHandle

Trait StreamIntoAutoUpdatedHandle 

Source
pub trait StreamIntoAutoUpdatedHandle:
    Stream
    + Unpin
    + Sized
    + 'static
where Self::Item: Send + Sync,
{ // Provided method fn into_auto_updated_handle<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Arc<ArcSwap<Self::Item>>>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } }

Provided Methods§

Source

fn into_auto_updated_handle<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Arc<ArcSwap<Self::Item>>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create an ArcSwap that provides access to the most recent value produced by the stream.

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<T: Stream + Unpin + 'static> StreamIntoAutoUpdatedHandle for T
where T::Item: Send + Sync,