Struct foxbox_taxonomy::adapter_utils::MakeSyncAdapter [] [src]

pub struct MakeSyncAdapter<T> where T: Adapter {
    // some fields omitted
}

A simple way of converting an Adapter to an Adapter + Sync.

Hardly optimal, but useful for testing and prototyping.

Methods

impl<T> MakeSyncAdapter<T> where T: Adapter

fn new(adapter: T) -> Self

Trait Implementations

impl<T> Adapter for MakeSyncAdapter<T> where T: Adapter

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

fn name(&self) -> &str

fn vendor(&self) -> &str

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

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

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

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