embedded_svc::eth

Trait Eth

Source
pub trait Eth {
    type Error: Debug;

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

Required Associated Types§

Source

type Error: Debug

Required Methods§

Source

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

Source

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

Source

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

Source

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

Implementations on Foreign Types§

Source§

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

Source§

type Error = <E as Eth>::Error

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

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

impl<T> Eth for EspEth<'_, T>

impl<T> Eth for EthDriver<'_, T>