BeaconReader

Trait BeaconReader 

Source
pub trait BeaconReader {
    type Future<'a>: Future<Output = Result<Beacon, FileErr>>
       where Self: 'a;

    // Required methods
    fn survey(&mut self, at: NonZeroU32) -> Self::Future<'_>;
    fn max_beacons(&self) -> u32;
}

Required Associated Types§

Source

type Future<'a>: Future<Output = Result<Beacon, FileErr>> where Self: 'a

Required Methods§

Source

fn survey(&mut self, at: NonZeroU32) -> Self::Future<'_>

Source

fn max_beacons(&self) -> u32

Returns the max N-th Beacon

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§