embedded_svc::eth::asynch

Trait 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>

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.

Implementations on Foreign Types§

Source§

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

Source§

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§

impl<T> Eth for AsyncEth<T>
where T: Eth<Error = EspError>,