emergency_lib::bss_cache

Trait BssCache

Source
pub trait BssCache {
    // Required methods
    fn update<'life0, 'async_trait, I>(
        &'life0 mut self,
        new_bsses: I,
    ) -> Pin<Box<dyn Future<Output = Result<(), UpdateError>> + 'async_trait>>
       where I: 'async_trait + ScanResultIteratorProxyInterface,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn iter(&self) -> Box<dyn Iterator<Item = (&BssId, &Bss)> + '_>;
}

Required Methods§

Source

fn update<'life0, 'async_trait, I>( &'life0 mut self, new_bsses: I, ) -> Pin<Box<dyn Future<Output = Result<(), UpdateError>> + 'async_trait>>
where I: 'async_trait + ScanResultIteratorProxyInterface, Self: 'async_trait, 'life0: 'async_trait,

Updates the cache with BSSes from new_bsses.

Source

fn iter(&self) -> Box<dyn Iterator<Item = (&BssId, &Bss)> + '_>

Returns an iterator over the known BSSes.

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§