Trait embedded_svc::eth::asynch::Eth

source ·
pub trait Eth {
    type Error: Debug;

    // Required methods
    async fn start(&mut self) -> Result<(), Self::Error>;
    async fn stop(&mut self) -> Result<(), Self::Error>;
    async fn is_started(&self) -> Result<bool, Self::Error>;
    async fn is_connected(&self) -> Result<bool, Self::Error>;
}

Required Associated Types§

source

type Error: Debug

Required Methods§

source

async fn start(&mut self) -> Result<(), Self::Error>

source

async fn stop(&mut self) -> Result<(), Self::Error>

source

async fn is_started(&self) -> Result<bool, Self::Error>

source

async fn is_connected(&self) -> Result<bool, Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E> Eth for &mut E
where E: Eth,

§

type Error = <E as Eth>::Error

source§

async fn start(&mut self) -> Result<(), Self::Error>

source§

async fn stop(&mut self) -> Result<(), Self::Error>

source§

async fn is_started(&self) -> Result<bool, Self::Error>

source§

async fn is_connected(&self) -> Result<bool, Self::Error>

Implementors§