Struct foxbox_taxonomy::fake_adapter::FakeAdapter [] [src]

pub struct FakeAdapter {
    // some fields omitted
}

Methods

impl FakeAdapter

fn new(id: &Id<AdapterId>) -> Self

fn take_rx(&self) -> Receiver<Effect>

fn get_tweak(&self) -> Arc<Fn(Tweak) + Sync + Send>

Trait Implementations

impl Adapter for FakeAdapter

fn id(&self) -> Id<AdapterId>

fn name(&self) -> &str

fn vendor(&self) -> &str

fn version(&self) -> &[u32; 4]

fn fetch_values(&self, channels: Vec<Id<Getter>>, _: User) -> ResultMap<Id<Getter>, Option<Value>, Error>

fn send_values(&self, values: HashMap<Id<Setter>, Value>, _: User) -> ResultMap<Id<Setter>, (), Error>

fn register_watch(&self, sources: Vec<(Id<Getter>, Option<Range>)>, on_event: Box<ExtSender<WatchEvent>>) -> ResultMap<Id<Getter>, Box<AdapterWatchGuard>, Error>