pub trait DummyIO {
    type MessageType;
    type Config;

    // Required method
    fn new(receiver: Receiver<Self::MessageType>, config: &Self::Config) -> Self;

    // Provided method
    fn create(config: &Self::Config) -> (Self, Sender<Self::MessageType>)
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

source

fn new(receiver: Receiver<Self::MessageType>, config: &Self::Config) -> Self

Provided Methods§

source

fn create(config: &Self::Config) -> (Self, Sender<Self::MessageType>)
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DummyIO for DummyActiveDevices

source§

impl DummyIO for follow_heating::io::temperatures::dummy::Dummy

source§

impl DummyIO for follow_heating::io::wiser::dummy::Dummy